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

L2SS-437: Explicitly mention FAULT in statusses that were triggered by FAULT conditions.

parent 2aaf79b2
No related branches found
No related tags found
1 merge request!152L2SS-437: Write exceptions to the status field of a Device
...@@ -51,7 +51,7 @@ def fault_on_error(): ...@@ -51,7 +51,7 @@ def fault_on_error():
return func(self, *args, **kwargs) return func(self, *args, **kwargs)
except Exception as e: except Exception as e:
self.error_stream("Function failed. Trace: %s", traceback.format_exc()) self.error_stream("Function failed. Trace: %s", traceback.format_exc())
self.Fault(f"{func.__name__}: {e.__class__.__name__}: {e}") self.Fault(f"FAULT in {func.__name__}: {e.__class__.__name__}: {e}")
return None 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