File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -780,12 +780,22 @@ def __getattr__(self, attr):
780
780
as before, e.g self.console or self.main.console, preserving the
781
781
same accessor as before.
782
782
"""
783
+ # It seems the Layout plugin is failing to be loaded under some
784
+ # circumstances, so we need errors for it to be raised. That way,
785
+ # they'll be reported by users on Github.
786
+ # See spyder-ide/spyder#22639
787
+ if attr == "layouts" :
788
+ return self .get_plugin (
789
+ self ._INTERNAL_PLUGINS_MAPPING [attr ], error = True
790
+ )
791
+
783
792
# Mapping of new plugin identifiers vs old attributtes
784
793
# names given for plugins
785
794
try :
786
795
if attr in self ._INTERNAL_PLUGINS_MAPPING .keys ():
787
796
return self .get_plugin (
788
- self ._INTERNAL_PLUGINS_MAPPING [attr ], error = False )
797
+ self ._INTERNAL_PLUGINS_MAPPING [attr ], error = False
798
+ )
789
799
return self .get_plugin (attr )
790
800
except SpyderAPIError :
791
801
pass
You can’t perform that action at this time.
0 commit comments