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

This commit is contained in:
Kovid Goyal 2017-09-08 17:38:37 +05:30
parent 281cb50780
commit 2089d2bfdf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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;
}