etherlab/CommonEtherCATFunction.py
changeset 2353 8f1a2846b2f5
parent 2165 02a2b5dee5e3
child 2354 9460872f1440
--- a/etherlab/CommonEtherCATFunction.py	Fri Sep 28 13:21:06 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Fri Sep 28 17:14:42 2018 +0300
@@ -21,12 +21,12 @@
     """
     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 ExtractName(names, default=None):