summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-23 22:38:55 +0200
committeremkael <emkael@tlen.pl>2016-10-23 22:38:55 +0200
commitd87b839b816050e83da0cc5c711f77182fb8e6f8 (patch)
tree74b431661ac740018bf080575fda832601479e5b /src
parent2661f939d15b8bd68b6ced934ec6a59aca2f25a4 (diff)
* better error handling on config restore
Diffstat (limited to 'src')
-rw-r--r--src/bidding_data_gui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bidding_data_gui.py b/src/bidding_data_gui.py
index 40c540d..5ad2647 100644
--- a/src/bidding_data_gui.py
+++ b/src/bidding_data_gui.py
@@ -449,7 +449,8 @@ class BiddingGUI(tk.Frame):
self.__default_config['goniec']['host'] = self.__goniec_host.get()
self.__default_config['goniec']['port'] = self.__goniec_port.get()
self.__default_config['goniec']['enabled'] = self.__goniec_enabled.get()
- json.dump(self.__default_config, file(self.__config_file, 'w'))
+ json.dump(self.__default_config, file(self.__config_file, 'w'),
+ sort_keys=True, indent=4)
# embedded image data for app icon
__icon_data = """R0lGODlhIAAgAOeRAAAAAAQEBAUFBQYGBggICAAAcQAAcgAAcwAAdAAAdQA