mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Properly handle the default argument in get_option when the requested plugin does not exist.
This commit is contained in:
parent
ebd777bac8
commit
abbc24e9c1
@ -539,7 +539,7 @@ class DeviceManager(Thread): # {{{
|
||||
return self.dynamic_plugin_responses.get()
|
||||
except:
|
||||
traceback.print_exc()
|
||||
return None
|
||||
return kwargs.get('default', None)
|
||||
|
||||
# The dynamic plugin methods below must be called on the GUI thread. They
|
||||
# will switch to the device thread before calling the plugin.
|
||||
|
Loading…
x
Reference in New Issue
Block a user