Update run server.py (#915)

Fix  for not callable error when  config.py not exists
pull/1044/head
calmzhu 2018-02-25 20:09:15 +08:00 committed by 老广
parent eb18648a66
commit 5193ba2e39
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ from apps import __version__
try:
from config import config as CONFIG
except ImportError:
CONFIG = type('_', (), {'__getattr__': None})()
CONFIG = type('_', (), {'__getattr__': lambda *arg: None})()
os.environ["PYTHONIOENCODING"] = "UTF-8"