mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 03:43:16 +02:00
MTP: Fix device that fails to open on linux not being blacklisted
This commit is contained in:
parent
54babcba51
commit
f7b20bbea6
1 changed files with 1 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ def open(self, connected_device, library_uuid):
|
|||
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…
Reference in a new issue