don't use bare except
use "except Exception", or if really needed explicitly "except BaseException"
This commit is contained in:
@@ -81,7 +81,7 @@ class DigitalBitbox_Client(HardwareClientBase):
|
||||
if self.opened:
|
||||
try:
|
||||
self.dbb_hid.close()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
self.opened = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user