logging: exception is a magic keyword

This commit is contained in:
Misty De Méo 2025-02-24 11:41:51 -08:00
parent 464aa201e4
commit e141543667
3 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ class ThreadExceptionGate:
"exception already pending for thread, discarding",
pending_exception=self.pending_exception,
thread=self.thread,
exception=e,
discarded_exception=e,
)
else:
self.pending_exception = e

View File

@ -292,7 +292,7 @@ class WebsockReceiverThread(threading.Thread):
message["params"]["message"]["text"],
)
elif message["method"] == "Runtime.exceptionThrown":
self.logger.debug("uncaught exception", exception=message)
self.logger.debug("uncaught exception", message=message)
elif message["method"] == "Page.javascriptDialogOpening":
self._javascript_dialog_opening(message)
elif (

View File

@ -122,6 +122,6 @@ def is_permitted_by_robots(site, url, proxy=None):
structlog.get_logger(logger_name=__name__).warning(
"returning true (permitted) after problem fetching " "robots.txt",
url=url,
exception=e,
raised_exception=e,
)
return True