summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/http.py')
-rw-r--r--test/lib/ansible_test/_internal/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/http.py b/test/lib/ansible_test/_internal/http.py
index 8b4154bf..66afc60d 100644
--- a/test/lib/ansible_test/_internal/http.py
+++ b/test/lib/ansible_test/_internal/http.py
@@ -126,7 +126,7 @@ class HttpResponse:
try:
return json.loads(self.response)
except ValueError:
- raise HttpError(self.status_code, 'Cannot parse response to %s %s as JSON:\n%s' % (self.method, self.url, self.response))
+ raise HttpError(self.status_code, 'Cannot parse response to %s %s as JSON:\n%s' % (self.method, self.url, self.response)) from None
class HttpError(ApplicationError):