Skip to content

Commit

Permalink
Layout: Fix error when plugins required for tabification are unavailable
Browse files Browse the repository at this point in the history
This was causing a crash at startup in some cases.
  • Loading branch information
ccordoba12 committed Dec 28, 2023
1 parent 80ced8c commit 73e1022
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spyder/plugins/layout/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,14 @@ def tabify_helper(plugin, next_to_plugins):
return False

# Get the actual plugins from their names
next_to_plugins = [self.get_plugin(p) for p in next_to_plugins]
next_to_plugins = [
self.get_plugin(p, error=False) for p in next_to_plugins
]

# Remove not available plugins from next_to_plugins
next_to_plugins = [
p for p in next_to_plugins if p is not None
]

if plugin.get_conf('first_time', True):
# This tabifies external and internal plugins that are loaded for
Expand Down

0 comments on commit 73e1022

Please sign in to comment.