properly call logging.exception

This commit is contained in:
holger krekel
2023-11-20 22:52:31 +01:00
parent e27ec22465
commit 9061cbbb4a

View File

@@ -140,7 +140,7 @@ def main():
else: else:
logging.warn("request had no answer: %r", msg) logging.warn("request had no answer: %r", msg)
except Exception: except Exception:
logging.exception() logging.exception("Exception in the handler")
raise raise
try: try: