connectors/PYRO/__init__.py
changeset 1846 14b40afccd69
parent 1837 c507c363625e
child 1847 6198190bc121
--- a/connectors/PYRO/__init__.py	Tue Oct 03 16:12:55 2017 +0300
+++ b/connectors/PYRO/__init__.py	Tue Oct 03 16:31:31 2017 +0300
@@ -97,7 +97,7 @@
             confnodesroot.logger.write(_("'{a1}' is located at {a2}\n").format(a1=location, a2=newlocation))
             location = newlocation
             r.close()
-        except Exception, msg:
+        except Exception:
             confnodesroot.logger.write_error(_("MDNS resolution failure for '%s'\n") % location)
             confnodesroot.logger.write_error(traceback.format_exc())
             return None
@@ -105,7 +105,7 @@
     # Try to get the proxy object
     try:
         RemotePLCObjectProxy = Pyro.core.getAttrProxyForURI(schemename + "://" + location + "/PLCObject")
-    except Exception, msg:
+    except Exception:
         confnodesroot.logger.write_error(_("Connection to '%s' failed.\n") % location)
         confnodesroot.logger.write_error(traceback.format_exc())
         return None