calibre-customize dont fail when customizing plugin and user provides no custom value

This commit is contained in:
Kovid Goyal 2024-04-19 06:47:07 +05:30
parent 35841014de
commit ffb2b5b5cb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -884,7 +884,10 @@ def main(args=sys.argv):
else:
print('No custom plugin named', opts.remove_plugin)
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())
if plugin is None:
print('No plugin with the name %s exists'%name)