Commit 8546474a26fcd6bb591e3b4f3f9ef41ae960fabc
1 parent
7397ed19
Exists in
master
and in
4 other branches
utils/conf: change IOError to ImportError
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
colab/utils/conf.py
@@ -32,7 +32,7 @@ def _load_py_file(py_path, path): | @@ -32,7 +32,7 @@ def _load_py_file(py_path, path): | ||
32 | try: | 32 | try: |
33 | py_settings = importlib.import_module(py_path) | 33 | py_settings = importlib.import_module(py_path) |
34 | 34 | ||
35 | - except IOError: | 35 | + except ImportError: |
36 | msg = ('Could not open settings file {}. Please ' | 36 | msg = ('Could not open settings file {}. Please ' |
37 | 'check if the file exists and if user ' | 37 | 'check if the file exists and if user ' |
38 | 'has read rights.').format(py_path) | 38 | 'has read rights.').format(py_path) |