diff --git a/panda/src/event/pythonTask.cxx b/panda/src/event/pythonTask.cxx index f25ab4837a..07fca8bd38 100644 --- a/panda/src/event/pythonTask.cxx +++ b/panda/src/event/pythonTask.cxx @@ -85,7 +85,6 @@ PythonTask(PyObject *func_or_coro, const std::string &name) : */ PythonTask:: ~PythonTask() { -#ifndef NDEBUG // If the coroutine threw an exception, and there was no opportunity to // handle it, let the user know. if (_exception != nullptr && !_retrieved_exception) { @@ -98,7 +97,6 @@ PythonTask:: _exc_value = nullptr; _exc_traceback = nullptr; } -#endif Py_XDECREF(_function); Py_DECREF(_args);