diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-20 19:06:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-20 19:06:24 -0800 |
commit | b1c105e0af173d59452fbd58f7c83e3b26f128a1 (patch) | |
tree | 8f48f836e72b33079234885d320cc07e9eac2590 /tools | |
parent | 885dd1a17370d42b1349293d01b85d45a650e2d0 (diff) |
fix bug with missing keys in Settings.defaults
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index 6fb708f8..5d6f3a72 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -317,7 +317,7 @@ class Settings: if key == key.upper(): # this is a hack. all of our settings are ALL_CAPS, python internals are not jsoned = json.dumps(value) # Only add if it actually modifies a default - if jsoned != json.dumps(Settings.defaults[key]): + if key not in Settings.defaults or jsoned != json.dumps(Settings.defaults[key]): ret += ['-s', key + '=' + jsoned] return ret |