Update single_url.ts

This commit is contained in:
rafaelsideguide 2024-07-01 18:21:15 -03:00
parent e1af815f8c
commit 16aac7f8c5
1 changed files with 3 additions and 1 deletions

View File

@ -443,8 +443,10 @@ export async function scrapSingleUrl(
if (attempt.pageStatusCode) {
pageStatusCode = attempt.pageStatusCode;
}
if (attempt.pageError) {
if (attempt.pageError && attempt.pageStatusCode != 200) {
pageError = attempt.pageError;
} else {
pageError = undefined;
}