TODO: survive to dynamic loading errors

This commit is contained in:
roberto@debian32
2011-06-25 10:24:52 +02:00
parent 9b7cbab37c
commit df0f2a549e
2 changed files with 19 additions and 8 deletions
+4 -1
View File
@@ -524,7 +524,10 @@ PyObject *uwsgi_file_loader(void *arg1) {
if (!callable) callable = "application";
wsgi_file_module = uwsgi_pyimport_by_filename("uwsgi_wsgi_file", filename);
// no need to check here for module import as it is already done by uwsgi_pyimport_by_file
if (!wsgi_file_module) {
PyErr_Print();
exit(1);
}
wsgi_file_dict = PyModule_GetDict(wsgi_file_module);
if (!wsgi_file_dict) {