Initializing sockslisten config value to account for upgrades. Otherwise, settings panel will not load.
This commit is contained in:
parent
27c0ac436c
commit
922cce6558
|
@ -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')
|
||||
|
||||
|
|
Reference in New Issue
Block a user