From ffb2b5b5cb1ec02b3ecf3a4000e7ecd64877409d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Apr 2024 06:47:07 +0530 Subject: [PATCH] calibre-customize dont fail when customizing plugin and user provides no custom value --- src/calibre/customize/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/ui.py b/src/calibre/customize/ui.py index f4e0285f34..69dc69ed45 100644 --- a/src/calibre/customize/ui.py +++ b/src/calibre/customize/ui.py @@ -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)