Skip to content
Snippets Groups Projects
Commit 84e4c19d authored by Jan David Mol's avatar Jan David Mol
Browse files

Reraise exceptions too if we go to FAULT

parent 5ebe70ca
No related branches found
No related tags found
1 merge request!361Reraise exceptions too if we go to FAULT
...@@ -55,11 +55,9 @@ def fault_on_error(): ...@@ -55,11 +55,9 @@ def fault_on_error():
try: try:
return func(self, *args, **kwargs) return func(self, *args, **kwargs)
except Exception as e: except Exception as e:
logger.exception("Function failed.") logger.exception("Function failed.")
self.Fault(f"FAULT in {func.__name__}: {e.__class__.__name__}: {e}") self.Fault(f"FAULT in {func.__name__}: {e.__class__.__name__}: {e}")
raise
return None
return error_wrapper return error_wrapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment