aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-03 14:54:59 +0100
committerGravatar jesopo2019-09-03 14:54:59 +0100
commit397cfa8e7e525910a0c16d65bc3b507d3e95bf8c (patch)
tree8f532b9fba46422f461824ae6137573f65fd80ee /src/utils/http.py
parentalso url_sanitise youtube urls found with argless !yt commands (diff)
signature
correctly qualify DeadlineExceededException namespace
Diffstat (limited to 'src/utils/http.py')
-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 f60cbbc6..11a73fc4 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -86,7 +86,7 @@ def request(url: str, method: str="GET", get_params: dict={},
stream=True
)
response_content = response.raw.read(RESPONSE_MAX, decode_content=True)
- except DeadlineExceededException:
+ except utils.DeadlineExceededException:
raise HTTPTimeoutException()
response_headers = utils.CaseInsensitiveDict(dict(response.headers))