Initializing sockslisten config value to account for upgrades. Otherwise, settings panel will not load.

This commit is contained in:
David Nichols 2013-07-12 13:42:11 -05:00
parent 27c0ac436c
commit 922cce6558

View File

@ -78,3 +78,9 @@ def loadConfig():
os.makedirs(shared.appdata)
with open(shared.appdata + 'keys.dat', 'wb') as configfile:
shared.config.write(configfile)
# Initialize settings that may be missing due to upgrades and could
# cause errors if missing.
if not shared.config.has_option('bitmessagesettings', 'sockslisten'):
shared.config.set('bitmessagesettings', 'sockslisten', 'false')