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

Touchups.

parent dd1958d6
No related branches found
No related tags found
No related merge requests found
......@@ -55,15 +55,15 @@ def fault_on_error(func):
"""
@wraps(func)
def opcua_error_wrapper(self, *args, **kwargs):
def error_wrapper(self, *args, **kwargs):
try:
return func(self, *args, **kwargs)
except Exception as e:
self.error_stream("Communication with the server %s failed. Trace: %s", self.client.server_url.geturl(), traceback.format_exc())
self.error_stream("Function failed. Trace: %s", traceback.format_exc())
self.Fault()
return None
return opcua_error_wrapper
return error_wrapper
class OPCUAConnection(Thread):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment