From f445a79e116b7362b977416b29c14e1e3e7b6cc9 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Fri, 13 May 2016 12:08:45 +0300 Subject: [PATCH] version 0.1.2 --- README.md | 11 ++++------- docs/compile.md | 1 + src/settings.py | 7 ++++--- src/util.py | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6e8f3be..da320f4 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,13 @@ # Toxygen -Toxygen is simple [Tox](https://tox.chat/) client written on pure Python +Toxygen is cross-platform [Tox](https://tox.chat/) client written on Python [![Release](https://img.shields.io/github/release/xveduk/toxygen.svg?style=flat)](https://github.com/xveduk/toxygen/releases/latest) -[![License](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://raw.githubusercontent.com/xveduk/toxygen/master/LICENSE.md) [![Open issues](https://img.shields.io/github/issues/xveduk/toxygen.svg?style=flat)](https://github.com/xveduk/toxygen/issues) +[![License](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://raw.githubusercontent.com/xveduk/toxygen/master/LICENSE.md) +### [Install](/docs/install.md) - [Contribute](/docs/contributing.md) -### [Install](/docs/install.md) - -### [Contribute](/docs/contributing.md) - -# Supported OS: +### Supported OS: - Windows - Linux diff --git a/docs/compile.md b/docs/compile.md index 4337e6f..1634314 100644 --- a/docs/compile.md +++ b/docs/compile.md @@ -1,6 +1,7 @@ #Compile Toxygen You can compile Toxygen using [PyInstaller](http://www.pyinstaller.org/) + Install PyInstaller: ``pip install pyinstaller`` diff --git a/src/settings.py b/src/settings.py index b0c7c31..8267596 100644 --- a/src/settings.py +++ b/src/settings.py @@ -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': [], diff --git a/src/util.py b/src/util.py index aa548c1..0737bcf 100644 --- a/src/util.py +++ b/src/util.py @@ -3,7 +3,7 @@ import time from platform import system -program_version = '0.1.1' +program_version = '0.1.2' def log(data):