Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 869dc7c

Browse files
authored
Catch IOError (python>=2.7) and OSError (ptyhon>=3.3) exceptions in hid transport
1 parent 75c0d9c commit 869dc7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

u2flib_host/hid_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def list_devices(dev_class=None):
8181
device.open()
8282
device.close()
8383
devices.append(dev_class(d['path']))
84-
except:
84+
except (exc.DeviceError, IOError, OSError):
8585
pass
8686
return devices
8787

0 commit comments

Comments
 (0)