[Python-Dev] Catching exceptions and convert them to warnings in C level code (was: Re: Pronouncement needed in issue9675)
Antoine Pitrou
solipsis at pitrou.net
Sat Oct 2 22:27:56 CEST 2010
On Sat, 02 Oct 2010 22:14:28 +0200
Jesus Cea <jcea at jcea.es> wrote:
>
> My idea is to convert the CObject exception in bsddb to print a warning
> like "CObject creation failed. The bsddb.cAPI will be not available.
> Reason is: XXXX".
>
> Is there a "canonical way" of doing this?. Sorry if the answer is trivial...
Try PyErr_WriteUnraisable().
Regards
Antoine.
More information about the Python-Dev
mailing list