Skip to content

Commit

Permalink
chg: Avoid multiline log message when a domain is not a thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 14, 2024
1 parent a67c61f commit 9aaa923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwrightcapture/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ async def handle_download(download: Download) -> None:
# NOTE: e.name is generally (always?) "Error"
if self._exception_is_network_error(e):
# Expected errors
self.logger.info(f'Unable to process {url}: {e.message}')
self.logger.info(f'Unable to process {url}: {e.name}')
if e.name == 'net::ERR_CONNECTION_RESET':
self.should_retry = True
elif e.name in ['NS_BINDING_CANCELLED_OLD_LOAD',
Expand Down

0 comments on commit 9aaa923

Please sign in to comment.