@@ -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 """
0 commit comments