Commit 5193ba2e authored by calmzhu's avatar calmzhu Committed by 老广

Update run server.py (#915)

Fix  for not callable error when  config.py not exists
parent eb18648a
...@@ -13,7 +13,7 @@ from apps import __version__ ...@@ -13,7 +13,7 @@ from apps import __version__
try: try:
from config import config as CONFIG from config import config as CONFIG
except ImportError: except ImportError:
CONFIG = type('_', (), {'__getattr__': None})() CONFIG = type('_', (), {'__getattr__': lambda *arg: None})()
os.environ["PYTHONIOENCODING"] = "UTF-8" os.environ["PYTHONIOENCODING"] = "UTF-8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment