Skip to content

Commit

Permalink
Use ImportError instead of ModuleNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
skylander86 committed Oct 2, 2017
1 parent 80ffbb7 commit 3f36367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.4
0.1.5
2 changes: 1 addition & 1 deletion ycsettings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _load_settings_from_source(self, source):

elif isinstance(source, str):
try: spec = importlib.util.find_spec(source)
except (AttributeError, ModuleNotFoundError): spec = None
except (AttributeError, ImportError): spec = None

settings = self._load_settings_from_spec(spec, name=source)
if settings is None:
Expand Down

0 comments on commit 3f36367

Please sign in to comment.