From 2661f939d15b8bd68b6ced934ec6a59aca2f25a4 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 23 Oct 2016 22:38:33 +0200 Subject: * storing config formatted nicely --- src/bidding_data_gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bidding_data_gui.py b/src/bidding_data_gui.py index 1a8e3bd..40c540d 100644 --- a/src/bidding_data_gui.py +++ b/src/bidding_data_gui.py @@ -431,16 +431,16 @@ class BiddingGUI(tk.Frame): else: log.getLogger('config').info( 'Config does not exist, using defaults') + except: + log.getLogger('config').warning( + 'Could not load complete config from file') + finally: self.__tour_filename.set(self.__default_config['paths']['html']) self.__bws_filename.set(self.__default_config['paths']['bws']) self.__goniec_host.set(self.__default_config['goniec']['host']) self.__goniec_port.set(self.__default_config['goniec']['port']) self.__goniec_enabled.set(self.__default_config['goniec']['enabled']) self.toggle_goniec() - except: - log.getLogger('config').warning( - 'Could not load complete config from file') - raise def __store_config(self): """Write config to JSON file.""" -- cgit v1.2.3