Update single_url.ts
This commit is contained in:
@@ -290,7 +290,7 @@ export async function scrapSingleUrl(
|
|||||||
}
|
}
|
||||||
if (attempt.pageError && attempt.pageStatusCode >= 400) {
|
if (attempt.pageError && attempt.pageStatusCode >= 400) {
|
||||||
pageError = attempt.pageError;
|
pageError = attempt.pageError;
|
||||||
} else if (attempt.pageStatusCode < 400) {
|
} else if (attempt && attempt.pageStatusCode && attempt.pageStatusCode < 400) {
|
||||||
pageError = undefined;
|
pageError = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user