From 5193ba2e393bfcd1ac7a1e7d6e26f94f35ab3f1d Mon Sep 17 00:00:00 2001 From: calmzhu Date: Sun, 25 Feb 2018 20:09:15 +0800 Subject: [PATCH] Update run server.py (#915) Fix for not callable error when config.py not exists --- run_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_server.py b/run_server.py index 1a389e5eb..011453a0c 100644 --- a/run_server.py +++ b/run_server.py @@ -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"