From 17fe08bf08b816f9fe6ce86b07ccc249055176db Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 22 Sep 2024 17:32:31 -0500 Subject: [PATCH] Backport PR #22550: PR: Avoid crashes at startup due to faulty/outdated external plugins --- spyder/app/find_plugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spyder/app/find_plugins.py b/spyder/app/find_plugins.py index ce2814ac8af..069264c0362 100644 --- a/spyder/app/find_plugins.py +++ b/spyder/app/find_plugins.py @@ -82,7 +82,9 @@ def find_external_plugins(): "Entry point name '{0}' and plugin.NAME '{1}' " "do not match!".format(name, plugin_class.NAME) ) - except (ModuleNotFoundError, ImportError) as error: + except Exception as error: + # We catch any error here to avoid Spyder to crash at startup + # due to faulty or outdated plugins. print("%s: %s" % (name, str(error)), file=STDERR) traceback.print_exc(file=STDERR)