Skip to content

Commit 550ce8c

Browse files
committed
Minor fix
1 parent 27276b6 commit 550ce8c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

gui.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ def __init__(self, **kwargs):
490490
opt_menu.add_checkbutton(label='Console debugging', variable=self.debug,
491491
command=self.apply_settings)
492492
self.verify = BooleanVar()
493+
self.verify.set(1)
493494
opt_menu.add_checkbutton(label='Verify SSL', variable=self.verify,
494495
command=self.apply_settings)
495496
opt_menu.add_command(label='Proxy URL', command=self.set_proxy)
@@ -507,11 +508,13 @@ def __init__(self, **kwargs):
507508
self.status.text('Not logged in')
508509
# Read config
509510
config = RawConfigParser()
511+
self.email = ''
512+
self.proxy = ''
510513
try:
511514
config.read('gui.ini')
512-
self.email = config.get('app', 'email', fallback='')
513-
self.verify.set(config.get('app', 'verify', fallback=True))
514-
self.proxy = config.get('app', 'proxy', fallback='')
515+
self.email = config.get('app', 'email')
516+
self.verify.set(config.get('app', 'verify'))
517+
self.proxy = config.get('app', 'proxy')
515518
self.auto_refresh.set(config.get('display', 'auto_refresh'))
516519
self.debug.set(config.get('display', 'debug'))
517520
except (NoSectionError, NoOptionError, ParsingError):
@@ -928,7 +931,8 @@ def apply_settings(self):
928931

929932
def set_proxy(self):
930933
""" Set proxy server URL """
931-
self.proxy = askstring('Set', 'Proxy URL', initialvalue=self.proxy)
934+
temp = askstring('Set', 'Proxy URL', initialvalue=self.proxy)
935+
self.proxy = '' if temp is None else temp
932936

933937
def save_and_quit(self):
934938
""" Save settings to file and quit app """

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ include_package_data = True
2929
install_requires =
3030
requests >= 2.4.2
3131
requests_oauthlib
32+
websocket-client >= 0.59.0

0 commit comments

Comments
 (0)