We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa74ba commit e9c7e9bCopy full SHA for e9c7e9b
pyls/plugins/preload_imports.py
@@ -30,5 +30,8 @@ def pyls_initialize(config):
30
try:
31
__import__(mod_name)
32
log.debug("Preloaded module %s", mod_name)
33
- except ImportError:
+ except Exception: # pylint: disable=broad-except
34
+ # Catch any exception since not only ImportError can be raised here
35
+ # For example, old versions of NumPy can cause a ValueError.
36
+ # See spyder-ide/spyder#13985
37
pass
0 commit comments