IDE: fix eRPC exception handling
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 24 May 2024 18:48:28 +0200
changeset 3948 21e391fb5983
parent 3947 9b5cb90297e4
child 3949 f64dce4e2f62
IDE: fix eRPC exception handling
connectors/ERPC/__init__.py
--- a/connectors/ERPC/__init__.py	Fri May 24 18:47:30 2024 +0200
+++ b/connectors/ERPC/__init__.py	Fri May 24 18:48:28 2024 +0200
@@ -126,7 +126,7 @@
             except erpc.client.RequestError as e:
                 confnodesroot.logger.write_error(_("ERPC request error: %s\n") % e)                
             except MissingCallException as e:
-                confnodesroot.logger.write_warning(_("Remote call not supported: %s\n") % e.message)
+                confnodesroot.logger.write_warning(_("Remote call not supported: %s\n") % e)
             except Exception as e:
                 errmess = _("Exception calling remote PLC object fucntion %s:\n") % method_name \
                           + traceback.format_exc()