Преглед изворни кода

event: Don't suppress coroutine exceptions in optimized builds

rdb пре 4 година
родитељ
комит
6a51709332
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      panda/src/event/pythonTask.cxx

+ 0 - 2
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);