Catch ProtocolError exception when connection failed
authorlaurent
Wed, 09 Dec 2009 16:53:59 +0100
changeset 493 015a803301b9
parent 492 0852c4682179
child 494 9e4263099427
Catch ProtocolError exception when connection failed
connectors/PYRO/__init__.py
--- a/connectors/PYRO/__init__.py	Wed Dec 09 16:53:27 2009 +0100
+++ b/connectors/PYRO/__init__.py	Wed Dec 09 16:53:59 2009 +0100
@@ -56,6 +56,8 @@
         def catcher_func(*args,**kwargs):
             try:
                 return func(*args,**kwargs)
+            except Pyro.errors.ProtocolError, e:
+                pass
             except Pyro.errors.ConnectionClosedError, e:
                 pluginsroot.logger.write_error("Connection lost!\n")
                 pluginsroot._connector = None