M astrid/cython/cyrenderer.pyx => astrid/cython/cyrenderer.pyx +5 -2
@@ 665,6 665,9 @@ cdef public int astrid_schedule_python_triggers(void * msgp) except -1:
ASTRID_INSTRUMENT.reload()
ASTRID_INSTRUMENT.last_reload = last_edit
- return trigger_events(ASTRID_INSTRUMENT, msg)
-
+ try:
+ return trigger_events(ASTRID_INSTRUMENT, msg)
+ except Exception as e:
+ logger.exception('Error during scheduling of python triggers: %s' % e)
+ return -1
M astrid/src/renderer.c => astrid/src/renderer.c +1 -2
@@ 177,9 177,8 @@ int main(int argc, char * argv[]) {
if(astrid_schedule_python_triggers(&msg) < 0) {
PyErr_Print();
syslog(LOG_ERR, "CPython error during trigger planning loop\n");
- goto lprender_cleanup;
}
- break;
+ continue;
case LPMSG_SHUTDOWN:
syslog(LOG_DEBUG, "Renderer got %s shutdown message:\n", msg.instrument_name);