Commit 6bf64b0ae8f864c4182cc8371b20053923f044f7
1 parent
704b65a2
Exists in
master
and in
4 other branches
Add check if widgets settings file exists
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
colab/utils/conf.py
@@ -151,6 +151,9 @@ def load_widgets_settings(): | @@ -151,6 +151,9 @@ def load_widgets_settings(): | ||
151 | if not os.path.exists(py_path): | 151 | if not os.path.exists(py_path): |
152 | return | 152 | return |
153 | 153 | ||
154 | + if not os.path.exists(settings_file): | ||
155 | + return | ||
156 | + | ||
154 | original_path = sys.path | 157 | original_path = sys.path |
155 | sys.path.append(py_path) | 158 | sys.path.append(py_path) |
156 | importlib.import_module(settings_module) | 159 | importlib.import_module(settings_module) |