diff -r fec90dc70e16 -r 8f1a2846b2f5 etherlab/CommonEtherCATFunction.py --- 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):