Fix main_loop() not returning NULL when an error has occurred

This commit is contained in:
Kovid Goyal
2017-09-15 10:45:15 +05:30
parent 281cb50780
commit 2089d2bfdf
+1
View File
@@ -500,6 +500,7 @@ main_loop(ChildMonitor *self) {
timers_call(self->timers);
parse_input(self);
}
if (PyErr_Occurred()) return NULL;
Py_RETURN_NONE;
}