python: Fix raising stashed exceptions.
authorJustus Winter <justus@g10code.com>
Fri, 8 Jul 2016 09:45:08 +0000 (11:45 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 8 Jul 2016 09:45:08 +0000 (11:45 +0200)
commit8a93f345b701332270c9829a4d0a93537f98a8d8
tree9a2a18c82f357fbd7c7eba50a5f1204efeeddc63
parent52efcf1ee9fc8ba4c6bd23d8fe4f5f7993ba9fb1
python: Fix raising stashed exceptions.

Fixes an issue with newer versions of Python.

* lang/python/helpers.c (pygpgme_raise_callback_exception): Be more
careful when restoring the exception.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/helpers.c