summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-23 22:38:33 +0200
committeremkael <emkael@tlen.pl>2016-10-23 22:38:33 +0200
commit2661f939d15b8bd68b6ced934ec6a59aca2f25a4 (patch)
tree8fe1bda435531b9bb12096a576a95e4753c79c75 /src
parentc956ebc4724e4d3144b5b8806754dfcadaf05ccc (diff)
* storing config formatted nicely
Diffstat (limited to 'src')
-rw-r--r--src/bidding_data_gui.py8
1 files changed, 4 insertions, 4 deletions
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."""