directly pass exception instances as 'exc_info' logger argument

This commit is contained in:
Mike Fährmann
2024-09-19 14:50:08 +02:00
parent dd56bb2187
commit a051e1c955
6 changed files with 18 additions and 15 deletions

View File

@@ -53,8 +53,8 @@ class NewgroundsExtractor(Extractor):
try:
post = self.extract_post(post_url)
url = post.get("url")
except Exception:
self.log.debug("", exc_info=True)
except Exception as exc:
self.log.debug("", exc_info=exc)
url = None
if url: