From 3fab5c14276fcec6d2b91339d107c2154dbc173a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 11 Jul 2019 01:31:37 -0400 Subject: [PATCH] Return empty dict if there is no config file Signed-off-by: Roberto Rosario --- mayan/apps/smart_settings/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/smart_settings/utils.py b/mayan/apps/smart_settings/utils.py index 4282d2c38d..77ce325e0c 100644 --- a/mayan/apps/smart_settings/utils.py +++ b/mayan/apps/smart_settings/utils.py @@ -56,7 +56,7 @@ def read_configuration_file(path): ) except IOError as exception: if exception.errno == errno.ENOENT: - pass + return {} # No config file, return empty dictionary else: raise