aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-28 23:00:48 +0100
committerGravatar jesopo2019-06-28 23:01:21 +0100
commitf9eb017466ec09f9ceb378cdb04bb70422bede7a (patch)
tree84280f01a2c98e1a86b9f61e8cc5f79cb5637e41 /src
parentAdd ircv3.py - for IRCv3-related stats (diff)
signature
message arg for HTTPWrongContentTypeException/HTTPParsingException
Diffstat (limited to 'src')
-rw-r--r--src/utils/http.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/http.py b/src/utils/http.py
index ac46ce6b..88555568 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -18,12 +18,12 @@ class HTTPTimeoutException(HTTPException):
def __init__(self):
Exception.__init__(self, "HTTP request timed out")
class HTTPParsingException(HTTPException):
- def __init__(self):
- Exception.__init__(self, "HTTP parsing failed")
- pass
+ def __init__(self, message: str=None):
+ Exception.__init__(self, message or "HTTP parsing failed")
class HTTPWrongContentTypeException(HTTPException):
- def __init__(self):
- Exception.__init__(self, "HTTP request gave wrong content type")
+ def __init__(self, message: str=None):
+ Exception.__init__(self,
+ message or "HTTP request gave wrong content type")
def throw_timeout():
raise HTTPTimeoutException()