mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
calibre-customize dont fail when customizing plugin and user provides no custom value
This commit is contained in:
parent
35841014de
commit
ffb2b5b5cb
@ -884,7 +884,10 @@ def main(args=sys.argv):
|
|||||||
else:
|
else:
|
||||||
print('No custom plugin named', opts.remove_plugin)
|
print('No custom plugin named', opts.remove_plugin)
|
||||||
if opts.customize_plugin is not None:
|
if opts.customize_plugin is not None:
|
||||||
name, custom = opts.customize_plugin.split(',')
|
try:
|
||||||
|
name, custom = opts.customize_plugin.split(',')
|
||||||
|
except ValueError:
|
||||||
|
name, custom = opts.customize_plugin, ''
|
||||||
plugin = find_plugin(name.strip())
|
plugin = find_plugin(name.strip())
|
||||||
if plugin is None:
|
if plugin is None:
|
||||||
print('No plugin with the name %s exists'%name)
|
print('No plugin with the name %s exists'%name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user