# HG changeset patch # User Tassilo Philipp # Date 1612295814 -3600 # Node ID 2e8a56976bf8a6bab8637354dcf243bf318ac600 # Parent 918dab7a6606281deaac654f586731f02c42fc47 fixed missing () making branch always be entered diff -r 918dab7a6606 -r 2e8a56976bf8 python/pydc/pydc.c --- a/python/pydc/pydc.c Tue Feb 02 20:42:02 2021 +0100 +++ b/python/pydc/pydc.c Tue Feb 02 20:56:54 2021 +0100 @@ -670,7 +670,7 @@ PyErr_SetString(PyExc_RuntimeError, "callback error: unknown error creating python arg tuple"); // as callbacks might be called repeatedly we don't want the error indicator to pollute other calls, so print - if(PyErr_Occurred) { + if(PyErr_Occurred()) { PyErr_Print(); return 'v'; // used as return char for errors @@@ unsure if smart, but it would at least indicate that no return value was set }