提交 5193ba2e 编写于 作者: C calmzhu 提交者: baltery

Update run server.py (#915)

Fix  for not callable error when  config.py not exists
上级 eb18648a
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册