Fix import conf.py

This commit is contained in:
Mauricio Baeza 2020-01-24 10:01:55 -06:00
parent 92e6a317ad
commit f102cb7c01
4 changed files with 10 additions and 6 deletions

View File

@ -1 +1 @@
1.33.0
1.33.1

View File

@ -23,8 +23,6 @@ import lxml.etree as ET
import requests
from requests.exceptions import ConnectionError
from .conf import DEBUG, AUTH
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
LOG_DATE = '%d/%m/%Y %H:%M:%S'
@ -33,10 +31,16 @@ logging.addLevelName(logging.DEBUG, '\x1b[33mDEBUG\033[1;0m')
logging.addLevelName(logging.INFO, '\x1b[32mINFO\033[1;0m')
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, datefmt=LOG_DATE)
log = logging.getLogger(__name__)
logging.getLogger('requests').setLevel(logging.ERROR)
try:
from .conf import DEBUG, AUTH
except ImportError:
DEBUG = False
log.error('Need make conf.py')
TIMEOUT = 10

View File

@ -24,7 +24,7 @@
# ~ con una cuenta de reseller
DEBUG = True
DEBUG = False
AUTH = {

View File

@ -47,7 +47,7 @@ except ImportError:
DEBUG = DEBUG
VERSION = '1.33.0'
VERSION = '1.33.1'
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)