force reconnection button and bug fixes

This commit is contained in:
ingvar1995 2016-04-16 11:54:29 +03:00
parent 43a49ca570
commit e88090ff17
3 changed files with 15 additions and 2 deletions

View file

@ -80,7 +80,10 @@ class Settings(Singleton, dict):
with open(path) as fl:
data = fl.read()
app_settings = json.loads(data)
app_settings['active_profile'].remove(unicode(ProfileHelper.get_path() + self.name + '.tox'))
try:
app_settings['active_profile'].remove(unicode(ProfileHelper.get_path() + self.name + '.tox'))
except:
pass
data = json.dumps(app_settings)
with open(path, 'w') as fl:
fl.write(data)