mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MTP: Fix device that fails to open on linux not being blacklisted
This commit is contained in:
parent
54babcba51
commit
f7b20bbea6
@ -169,6 +169,7 @@ class MTP_DEVICE(MTPDeviceBase):
|
||||
try:
|
||||
self.dev = self.create_device(connected_device)
|
||||
except Exception as e:
|
||||
self.blacklisted_devices.add(connected_device)
|
||||
raise OpenFailed('Failed to open %s: Error: %s'%(
|
||||
connected_device, as_unicode(e)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user