Skip to content
Snippets Groups Projects
Commit 50dfcfcb authored by Thomas Juerges's avatar Thomas Juerges
Browse files

L2SS-253: Use {}.format to log the exception

parent 6341a544
No related branches found
No related tags found
1 merge request!55L2SS-253: Simplify the log_exception wrapper
...@@ -64,7 +64,7 @@ def log_exceptions(): ...@@ -64,7 +64,7 @@ def log_exceptions():
try: try:
return func(self, *args, **kwargs) return func(self, *args, **kwargs)
except Exception as e: except Exception as e:
self.error_stream("Caught exception: %s: %s", e.__class__.__name__, e, exc_info=1) self.error_stream("Unhandled exception: {}".format(e))
raise e raise e
return inner return inner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment