From 18bf5375703ce6634b99b376781251ef6253cb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 31 Mar 2020 23:26:42 +0200 Subject: plugin_manager: log on every Exception that caused plugin loading to fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/plugin_manager.py b/poezio/plugin_manager.py index e603b6fa..75a6b4a3 100644 --- a/poezio/plugin_manager.py +++ b/poezio/plugin_manager.py @@ -83,7 +83,7 @@ class PluginManager: log.debug('Found candidate entry for plugin %s: %r', name, entry) try: module = entry.load() - except ImportError as exn: + except Exception as exn: log.debug('Failed to import plugin: %s\n%r', name, exn, exc_info=True) finally: -- cgit v1.2.3