Skip to content

Commit

Permalink
Backport PR spyder-ide#22550: PR: Avoid crashes at startup due to fau…
Browse files Browse the repository at this point in the history
…lty/outdated external plugins
  • Loading branch information
ccordoba12 authored and meeseeksmachine committed Sep 22, 2024
1 parent 127a6c8 commit 17fe08b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spyder/app/find_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 17fe08b

Please sign in to comment.