[py] fix reference counting of exception types (thanks @wackou)
authorPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 10:42:36 +0000 (12:42 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 10:42:36 +0000 (12:42 +0200)
Commit 8bfef30 exposed a reference counting error, causing the
interpreter to crash before exiting. The solution is to incref the
exception type before calling PyErr_Restore.


No differences found