Skip to content

Commit

Permalink
Update exception message check
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed May 31, 2024
1 parent 97e7443 commit 5682d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy_playwright/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def _get_page_content(
try:
return await page.content()
except Error as err:
if err.message == _NAVIGATION_ERROR_MSG:
if _NAVIGATION_ERROR_MSG in err.message:
logger.debug(
"Retrying to get content from page '%s', error: '%s'",
page.url,
Expand Down

0 comments on commit 5682d57

Please sign in to comment.