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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user