diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-07-15 17:55:05 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-07-15 21:19:54 +0200 |
commit | 9fa1d0c968977ef23e26556b0a8e8e76b32c7288 (patch) | |
tree | 9acac7d02a5020e204de639c69d25e70a4b654f7 /.gitignore | |
parent | 4aa89241e3a0423198cc6dce1f6f193eca74cac6 (diff) | |
download | pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.tar.gz pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.tar.xz pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.zip |
Handle JSON decode error in handle_exceptions()
pki.handle_exceptions() raises a JSON decode exception when the body of
the HTTPException is not a valid JSON string. The JSON exception hides
the true error message.
The patch also fixes a bug in PKIException.from_json(). The code and
ClassName attribute are now correctly set. Finally we have our first
unit test.
https://fedorahosted.org/pki/ticket/1488
https://fedorahosted.org/freeipa/ticket/5129
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index d2ecc2f89..172610bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ tests/dogtag/dev_java_tests/bin/ .tox dist MANIFEST +*.pyc +__pycache__ |