--- a/connectors/PYRO/__init__.py Wed May 17 17:13:39 2023 +0200
+++ b/connectors/PYRO/__init__.py Wed May 17 23:36:12 2023 +0200
@@ -23,7 +23,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-import traceback
from time import sleep
import copy
import socket
@@ -78,8 +77,7 @@
except Pyro5.errors.ProtocolError as e:
confnodesroot.logger.write_error(_("Pyro exception: %s\n") % e)
except Exception as e:
- # confnodesroot.logger.write_error(traceback.format_exc())
- errmess = ''.join(Pyro5.errors.get_pyro_traceback(e))
+ errmess = ''.join(Pyro5.errors.get_pyro_traceback())
confnodesroot.logger.write_error(errmess + "\n")
print(errmess)
confnodesroot._SetConnector(None)
--- a/runtime/PyroServer.py Wed May 17 17:13:39 2023 +0200
+++ b/runtime/PyroServer.py Wed May 17 23:36:12 2023 +0200
@@ -22,7 +22,7 @@
def make_pyro_exposed_stub(method_name):
stub = lambda self, *args, **kwargs: \
- getattr(self.plc_object_instance, method_name)(self, *args, **kwargs)
+ getattr(self.plc_object_instance, method_name)(*args, **kwargs)
stub.__name__ = method_name
Pyro5.server.expose(stub)
return stub