diff options
Diffstat (limited to 'src/utils/http.py')
| -rw-r--r-- | src/utils/http.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index a6a074ab..2207a86c 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -42,8 +42,9 @@ class HTTPTimeoutException(HTTPException): def __init__(self): Exception.__init__(self, "HTTP request timed out") class HTTPParsingException(HTTPException): - def __init__(self, message: str, data: str=None): - Exception.__init__(self, message or "HTTP parsing failed") + def __init__(self, message: str, data: str): + Exception.__init__(self, + message or ("HTTP parsing failed:\n%s" % data)) class HTTPWrongContentTypeException(HTTPException): def __init__(self, message: str=None): Exception.__init__(self, |
