Don't try to update globals if there are no settings.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-27 03:45:05 -04:00
parent 10f10cadeb
commit abcc6539c8

View File

@@ -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)