]> git.ipfire.org Git - people/ms/pakfire.git/commit
python: Hack to not crash when the log function raises an exception
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Sep 2022 13:24:42 +0000 (13:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Sep 2022 13:24:42 +0000 (13:24 +0000)
commit904e2db4457ab93c5783771c80413d59b37631e8
treeb77aaf6345e4770aab1c7f95a2204948d5a9d523
parente3bca677b6aed4f39268a3428fc140b88df82128
python: Hack to not crash when the log function raises an exception

If the log callback raises a Python exception, we cannot handle this in
the C code since there are not return values checked.

Instead, we will check now if an exception has occured and print it to
the console. Not great, but at least this is useful for debugging.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c