check for NULL dictionary values in python autoreloader

This commit is contained in:
Unbit
2013-10-12 00:34:31 +02:00
parent 7f99855527
commit 3b13de3e6e
+1
View File
@@ -1380,6 +1380,7 @@ void *uwsgi_python_autoreloader_thread(void *foobar) {
#endif
PyObject *mod_name, *mod;
while (PyDict_Next(modules, &pos, &mod_name, &mod)) {
if (mod == NULL) continue;
int found = 0;
struct uwsgi_string_list *usl = up.auto_reload_ignore;
while(usl) {