Skip to content

Commit

Permalink
Fix, was using exception object after potential release.
Browse files Browse the repository at this point in the history
* This has caused spurious crashes of test runs on OpenSUSE Build Service
  that were never reproducible, and then went away.

* Only happens if raising an exception from non-exception type object,
  so unlikely to affect much real life code.
  • Loading branch information
kayhayen committed Dec 10, 2016
1 parent 9d91b09 commit 7dfdaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuitka/build/include/nuitka/helper/raising.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ NUITKA_MAY_BE_UNUSED static void RAISE_EXCEPTION_WITH_TYPE( PyObject **exception
}
else
{
PyErr_Format( PyExc_TypeError, WRONG_EXCEPTION_TYPE_ERROR_MESSAGE, Py_TYPE( *exception_type )->tp_name );
Py_DECREF( *exception_type );

PyErr_Format( PyExc_TypeError, WRONG_EXCEPTION_TYPE_ERROR_MESSAGE, Py_TYPE( *exception_type )->tp_name );
FETCH_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return;
}
Expand Down

0 comments on commit 7dfdaf1

Please sign in to comment.