Skip to content

Commit 922cce6

Browse files
committed
Initializing sockslisten config value to account for upgrades. Otherwise, settings panel will not load.
1 parent 27c0ac4 commit 922cce6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/helper_startup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,9 @@ def loadConfig():
7878
os.makedirs(shared.appdata)
7979
with open(shared.appdata + 'keys.dat', 'wb') as configfile:
8080
shared.config.write(configfile)
81+
82+
# Initialize settings that may be missing due to upgrades and could
83+
# cause errors if missing.
84+
if not shared.config.has_option('bitmessagesettings', 'sockslisten'):
85+
shared.config.set('bitmessagesettings', 'sockslisten', 'false')
86+

0 commit comments

Comments
 (0)