forked from ptesarik/libkdumpfile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python uses exceptions in a similar fashion to how C APIs use errno. It's important use an appropriate exception so that exception handling can key off it properly. This patch updates the python interface to provide more detailed exceptions through better choice of exception types and its own kdump_err_str interface. We also pass exceptions up untouched and return NULL instead of Py_None where necessary. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
- Loading branch information
1 parent
aaa323e
commit 9488340
Showing
1 changed file
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters