From abcc6539c8c13f6049981984a7daf3dcf907df6b Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 27 Aug 2018 03:45:05 -0400 Subject: [PATCH] Don't try to update globals if there are no settings. Signed-off-by: Roberto Rosario --- mayan/settings/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mayan/settings/base.py b/mayan/settings/base.py index cbc103fafe..4d5203a02e 100644 --- a/mayan/settings/base.py +++ b/mayan/settings/base.py @@ -360,4 +360,6 @@ CONFIGURATION_LAST_GOOD_FILEPATH = os.path.join( ) if not 'revertsettings' in sys.argv: - globals().update(read_configuration_file(CONFIGURATION_FILEPATH)) + result = read_configuration_file(CONFIGURATION_FILEPATH) + if result: + globals().update(result)