less encompassing exception
This commit is contained in:
1 parent
9e4b0f83d8
commit
0c264ca0d2
1 file changed
+2
-2
@@ -45,7 +45,7 @@ try:
|
||||
except ImportError:
|
||||
try:
|
||||
import _winreg as winreg
|
||||
except:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
@@ -166,7 +166,7 @@ def serialList():
|
||||
while(1):
|
||||
baselist+=[winreg.EnumValue(key,i)[1]]
|
||||
i+=1
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
baselist = baselist \
|
||||
+ glob.glob("/dev/ttyUSB*") \
|
||||
|
||||
Reference in new issue
Block a user