From 8546474a26fcd6bb591e3b4f3f9ef41ae960fabc Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Wed, 11 Nov 2015 17:20:43 -0200 Subject: [PATCH] utils/conf: change IOError to ImportError --- colab/utils/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colab/utils/conf.py b/colab/utils/conf.py index ad2d068..5b4c80b 100644 --- a/colab/utils/conf.py +++ b/colab/utils/conf.py @@ -32,7 +32,7 @@ def _load_py_file(py_path, path): try: py_settings = importlib.import_module(py_path) - except IOError: + except ImportError: msg = ('Could not open settings file {}. Please ' 'check if the file exists and if user ' 'has read rights.').format(py_path) -- libgit2 0.21.2