diff options
| author | 2019-09-18 14:20:59 +0100 | |
|---|---|---|
| committer | 2019-09-18 14:20:59 +0100 | |
| commit | cd0d39ee5e21589526b0fb716e4b2ec537bbb69f (patch) | |
| tree | c5992e65dc8f0f33a5d0ad79a8d995e1fda9b0e4 /src | |
| parent | don't use JOIN/QUIT as !seen events (netsplits cause these) (diff) | |
| signature | ||
also show "bad" data in HTTPParsingException when a message is provided
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index 2207a86c..4896866e 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -44,7 +44,7 @@ class HTTPTimeoutException(HTTPException): class HTTPParsingException(HTTPException): def __init__(self, message: str, data: str): Exception.__init__(self, - message or ("HTTP parsing failed:\n%s" % data)) + "%s\n%s" % ((message or "HTTP parsing failed"), data)) class HTTPWrongContentTypeException(HTTPException): def __init__(self, message: str=None): Exception.__init__(self, |
