From 2089d2bfdff88b3f26b77929796b9c8e87338585 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Sep 2017 17:38:37 +0530 Subject: [PATCH] Fix main_loop() not returning NULL when an error has occurred --- kitty/child-monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index e5d184359..46c90617f 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -500,6 +500,7 @@ main_loop(ChildMonitor *self) { timers_call(self->timers); parse_input(self); } + if (PyErr_Occurred()) return NULL; Py_RETURN_NONE; }