diff --git a/main.py b/main.py index eb4a1a3..5f6fb7e 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,8 @@ GUI_TAG = 'gui' LOG_FOLDER = os.path.join(PYTHON_FOLDER, "logs") +if not os.path.exists(LOG_FOLDER): + os.makedirs(LOG_FOLDER) LOG_FILE = os.path.join(LOG_FOLDER, 'chat_log.log') LOG_FORMAT = logging.Formatter("%(asctime)s [%(name)s] [%(levelname)s] %(message)s") diff --git a/modules/chats/sc2tv.py b/modules/chats/sc2tv.py index 634cd15..f554c41 100644 --- a/modules/chats/sc2tv.py +++ b/modules/chats/sc2tv.py @@ -104,7 +104,7 @@ def received_message(self, mes): elif dict_item == 'id': try: self.duplicates.index(message[dict_item]) - except IndexError: + except ValueError: comp = {'source': self.source, 'source_icon': SOURCE_ICON, 'user': message['from']['name'], diff --git a/setup.py b/setup.py index 503d809..6674076 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,9 @@ setup( name='LalkaChat', - version='0.0.1', + version='0.2.0', packages=['', 'modules', 'modules.helpers', 'modules.messaging'], - requires=['requests', 'cherrypy', 'ws4py', 'irc', 'wxpython', 'cefpython', 'jinja2'], + requires=['requests', 'cherrypy', 'ws4py', 'irc', 'wxpython', 'cefpython3'], url='https://github.com/DeForce/LalkaChat', license='', author='CzT/DeForce',