Update single_url.ts

This commit is contained in:
Nicolas 2024-07-03 18:38:17 -03:00
parent f5b2fbd7e8
commit 066d92f643
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ export async function scrapSingleUrl(
}
if (attempt.pageError && attempt.pageStatusCode >= 400) {
pageError = attempt.pageError;
} else if (attempt.pageStatusCode < 400) {
} else if (attempt && attempt.pageStatusCode && attempt.pageStatusCode < 400) {
pageError = undefined;
}