Skip to content

Commit 5682d57

Browse files
committed
Update exception message check
1 parent 97e7443 commit 5682d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapy_playwright/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def _get_page_content(
6464
try:
6565
return await page.content()
6666
except Error as err:
67-
if err.message == _NAVIGATION_ERROR_MSG:
67+
if _NAVIGATION_ERROR_MSG in err.message:
6868
logger.debug(
6969
"Retrying to get content from page '%s', error: '%s'",
7070
page.url,

0 commit comments

Comments
 (0)