From 1bf3dd7bf4d9307e1821a2f6ae0b257af91b0e62 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Mon, 24 Oct 2011 18:52:41 +0200 Subject: [PATCH] fixed mule patch message --- plugins/python/python_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 8b2b2f44..2ed4623e 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -1400,7 +1400,9 @@ int uwsgi_python_mule(char *opt) { if (uwsgi_endswith(opt, ".py")) { UWSGI_GET_GIL; - uwsgi_pyimport_by_filename("__main__", opt); + if (uwsgi_pyimport_by_filename("__main__", opt) == NULL) { + return 0; + } UWSGI_RELEASE_GIL; return 1; }