Skip to content

Commit

Permalink
Merge pull request #3739 from ccordoba12/improve-modules-detection
Browse files Browse the repository at this point in the history
Utils: Make is_module_installed to catch all errors when importing a module
  • Loading branch information
ccordoba12 authored Nov 24, 2016
2 parents bb8e516 + f22671e commit d5d5bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/utils/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def is_module_installed(module_name, version=None, installed_version=None,
if installed_version is None:
try:
actver = get_module_version(module_name)
except ImportError:
except:
# Module is not installed
return False
else:
Expand Down

0 comments on commit d5d5bc2

Please sign in to comment.