Commit ba70b5c4da3e1cb03f6986c4912d47280f0e06cd

Authored by Sergio Oliveira
1 parent 358f30b7

Return empty dict in no yaml configs are available

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
colab/utils/conf.py
@@ -27,6 +27,6 @@ def load_yaml_settings(): @@ -27,6 +27,6 @@ def load_yaml_settings():
27 'has read rights.').format(yaml_path) 27 'has read rights.').format(yaml_path)
28 raise InaccessibleYAMLSettings(msg) 28 raise InaccessibleYAMLSettings(msg)
29 29
30 - return yaml_settings 30 + return yaml_settings or {}
31 31
32 yaml_settings = load_yaml_settings() 32 yaml_settings = load_yaml_settings()