diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index d14d3c04ee846449c4daeff3e301353fc61e8018..cc81521b950b1942e522e4cc12d12e81f0978510 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -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): """