From 66e54b06896a9de7b35d1700ad34b25778780408 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 28 Jan 2023 19:29:00 +0100 Subject: Include options in HttpError --- slack/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slack/http.py') diff --git a/slack/http.py b/slack/http.py index 820abb8..b899690 100644 --- a/slack/http.py +++ b/slack/http.py @@ -74,7 +74,7 @@ async def http_request( ) await sleep(1000) return await http_request(url, options, timeout, max_retries - 1) - raise HttpError(url, return_code, 0, err) + raise HttpError(url, options, return_code, 0, err) parts = out.split("\r\n\r\nHTTP/") last_header_part, body = parts[-1].split("\r\n\r\n", 1) @@ -94,6 +94,6 @@ async def http_request( return await http_request(url, options, timeout) if http_status >= 400: - raise HttpError(url, return_code, http_status, body) + raise HttpError(url, options, return_code, http_status, body) return body -- cgit