aboutsummaryrefslogtreecommitdiffstats
path: root/slack/http.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-16 16:23:14 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb (patch)
tree5ac2479ecc4abc2ef96c5d38eafc26f1d90ccf2d /slack/http.py
parent30eea6bb1f4278b79583e8130aef5e404411a31b (diff)
downloadwee-slack-748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb.tar.gz
Use None instead of 0 for missing http code in HttpError
Diffstat (limited to 'slack/http.py')
-rw-r--r--slack/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/http.py b/slack/http.py
index 5909cc0..b05cfb4 100644
--- a/slack/http.py
+++ b/slack/http.py
@@ -76,7 +76,7 @@ async def http_request(
)
await sleep(1000)
return await http_request(url, options, timeout, max_retries - 1)
- raise HttpError(url, options, return_code, 0, err)
+ raise HttpError(url, options, return_code, None, err)
parts = out.split("\r\n\r\nHTTP/")
last_header_part, body = parts[-1].split("\r\n\r\n", 1)