We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83685f commit a5ae6a7Copy full SHA for a5ae6a7
kombu/asynchronous/http/urllib3_client.py
@@ -180,9 +180,18 @@ def _execute_request(self, request):
180
effective_url=response.geturl() if hasattr(response, 'geturl') else request.url,
181
error=None
182
)
183
- response.release_conn()
+ except urllib3.exceptions.HTTPError as e:
184
+ # Handle HTTPError specifically
185
+ response_obj = self.Response(
186
+ request=request,
187
+ code=599,
188
+ headers={},
189
+ buffer=None,
190
+ effective_url=None,
191
+ error=HttpError(599, str(e))
192
+ )
193
except Exception as e:
- # Handle any errors
194
+ # Handle any other errors
195
response_obj = self.Response(
196
request=request,
197
code=599,
0 commit comments