mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7905 (calibre keeps on trying to connect to the plugged device even error happens)
This commit is contained in:
parent
ed4709f9ac
commit
5dacd76a4e
@ -166,7 +166,9 @@ class DeviceManager(Thread): # {{{
|
||||
report_progress=self.report_progress)
|
||||
dev.open()
|
||||
except OpenFeedback, e:
|
||||
if dev not in self.ejected_devices:
|
||||
self.open_feedback_msg(dev.get_gui_name(), e.feedback_msg)
|
||||
self.ejected_devices.add(dev)
|
||||
continue
|
||||
except:
|
||||
tb = traceback.format_exc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user