diff --git a/src/TranslationServer.py b/src/TranslationServer.py index 2384438..66442b6 100644 --- a/src/TranslationServer.py +++ b/src/TranslationServer.py @@ -10,6 +10,7 @@ from threading import Lock from logging.handlers import RotatingFileHandler import os, argparse, thread, logging, sys +MySQLdb=None RUN_MODE=None BUNDLES_PATH=None conn=None @@ -38,7 +39,9 @@ def dict_mode(): BUNDLES_PATH={"IOS":IOS_SIGNS_PATH, "ANDROID":ANDROID_SIGNS_PATH, "STANDALONE":STANDALONE_SIGNS_PATH, "WEBGL":WEBGL_SIGNS_PATH} def connect_database(): - import MySQLdb, warnings + import MySQLdb as mysql + import warnings + MySQLdb = mysql global conn warnings.filterwarnings('ignore', category=MySQLdb.Warning) while True: -- libgit2 0.21.2