less encompassing exception

This commit is contained in:
Matthias Urlichs committed 2019-01-28 07:50:55 +01:00
1 parent 9e4b0f83d8
commit 0c264ca0d2
1 file changed
+2 -2
+2 -2
View File
@@ -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*") \