From 0abfcb43b7c6b3416e86a0778ada3ad80058211b Mon Sep 17 00:00:00 2001 From: David Date: Thu, 2 Jun 2016 23:27:59 +1000 Subject: [PATCH] Add versions in plugin list in error output We have a nice list of plugins with the errors, so add the plugin version numbers to help the plugin developers. --- src/calibre/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index e88cc63a37..8815c594f4 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -182,7 +182,7 @@ def print_basic_debug_info(out=None): pass from calibre.customize.ui import has_external_plugins, initialized_plugins if has_external_plugins(): - names = (p.name for p in initialized_plugins() if getattr(p, 'plugin_path', None) is not None) + names = ('{0} ({1})'.format(p.name, '.'.join(map(unicode, p.version))) for p in initialized_plugins() if getattr(p, 'plugin_path', None) is not None) out('Successfully initialized third party plugins:', ' && '.join(names)) def run_debug_gui(logpath):