aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-18 14:20:59 +0100
committerGravatar jesopo2019-09-18 14:20:59 +0100
commitcd0d39ee5e21589526b0fb716e4b2ec537bbb69f (patch)
treec5992e65dc8f0f33a5d0ad79a8d995e1fda9b0e4 /src/utils
parentdon'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/utils')
-rw-r--r--src/utils/http.py2
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,