From f462792c8ef5aca0f6149e7e89d87f354cff9670 Mon Sep 17 00:00:00 2001 From: Unbit Date: Fri, 18 Oct 2013 12:13:02 +0200 Subject: [PATCH] fixed uwgsi-docs bug 98 --- plugins/python/pyloader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 7d06efe4..5ee3f8f3 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -227,6 +227,10 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre PyObject *callables_dict = get_uwsgi_pydict((char *)arg1); if (callables_dict) { wi->callable = PyDict_GetItem(callables_dict, (PyObject *)wi->callable); + if (!wi->callable) { + uwsgi_log("skipping broken app %s\n", wsgi_req->appid); + goto multiapp; + } } } } @@ -357,6 +361,7 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre uwsgi_apps_cnt++; +multiapp: if (multiapp > 1) { for(i=1;i