version 0.1.2

This commit is contained in:
ingvar1995 2016-05-13 12:08:45 +03:00
parent 29617c2168
commit f445a79e11
4 changed files with 10 additions and 11 deletions

View file

@ -2,7 +2,7 @@ from platform import system
import json
import os
import locale
from util import Singleton, curr_directory
from util import Singleton, curr_directory, log
import pyaudio
@ -16,8 +16,9 @@ class Settings(Singleton, dict):
data = fl.read()
try:
info = json.loads(data)
except:
except Exception as ex:
info = Settings.get_default_settings()
log('Parsing settings error: ' + str(ex))
super(self.__class__, self).__init__(info)
self.upgrade()
else:
@ -61,7 +62,7 @@ class Settings(Singleton, dict):
'language': 'English',
'save_history': False,
'allow_inline': True,
'allow_auto_accept': False,
'allow_auto_accept': True,
'auto_accept_path': None,
'show_online_friends': False,
'auto_accept_from_friends': [],

View file

@ -3,7 +3,7 @@ import time
from platform import system
program_version = '0.1.1'
program_version = '0.1.2'
def log(data):