From 9fa1d0c968977ef23e26556b0a8e8e76b32c7288 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 15 Jul 2015 17:55:05 +0200 Subject: 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 --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitignore') 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__ -- cgit