From 788e2b43af4c1fb6d49714234ad026caf4e757b9 Mon Sep 17 00:00:00 2001 From: AdamPS <5490095+AdamPS@users.noreply.github.com> Date: Mon, 23 Jan 2023 15:51:52 +0000 Subject: [PATCH] Improve error message to include information from the exception --- safeeyes/plugin_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safeeyes/plugin_manager.py b/safeeyes/plugin_manager.py index 4127872..9e8a53f 100644 --- a/safeeyes/plugin_manager.py +++ b/safeeyes/plugin_manager.py @@ -84,8 +84,8 @@ class PluginManager: for plugin in config.get('plugins'): try: self.__load_plugin(plugin) - except BaseException: - logging.error('Error in loading the plugin: %s', plugin['id']) + except BaseException as e: + logging.error('Error in loading the plugin %s: %s', plugin['id'], e) continue # Initialize the plugins for plugin in self.__plugins_on_init: