Fix misc typos in exception handling code. nevow_service_rework
authorEdouard Tisserant
Fri, 06 Jul 2018 15:05:03 +0200
branchnevow_service_rework
changeset 2216 8ae29ec2d1dc
parent 2215 f808ec7dc10e
child 2217 a603d1ba287b
Fix misc typos in exception handling code.
Beremiz_service.py
--- a/Beremiz_service.py	Thu Jul 05 13:46:18 2018 +0200
+++ b/Beremiz_service.py	Fri Jul 06 15:05:03 2018 +0200
@@ -587,7 +587,7 @@
     if webport is not None:
         try:
             import runtime.NevowServer as NS  # pylint: disable=ungrouped-imports
-        except Exception, e:
+        except Exception:
             LogMessageAndException(_("Nevow/Athena import failed :"))
             webport = None
         NS.WorkingDir = WorkingDir
@@ -602,8 +602,8 @@
     if wampconf is not None:
         try:
             import runtime.WampClient as WC  # pylint: disable=ungrouped-imports
-        except Exception, e:
-            print(_("WAMP import failed :"), e)
+        except Exception:
+            LogMessageAndException(_("WAMP import failed :"))
             wampconf = None
 
 # Load extensions