etherlab/EthercatSlave.py
changeset 2353 8f1a2846b2f5
parent 2165 02a2b5dee5e3
child 2355 fec77f2b9e07
--- a/etherlab/EthercatSlave.py	Fri Sep 28 13:21:06 2018 +0300
+++ b/etherlab/EthercatSlave.py	Fri Sep 28 17:14:42 2018 +0300
@@ -34,11 +34,11 @@
 def ExtractHexDecValue(value):
     try:
         return int(value)
-    except:
+    except Exception:
         pass
     try:
         return int(value.replace("#", "0"), 16)
-    except:
+    except Exception:
         raise ValueError, "Invalid value for HexDecValue \"%s\"" % value
 
 def GenerateHexDecValue(value, base=10):