Fix net.talk() not raising errors for nio bad resp
This commit is contained in:
parent
2c5dc7bd4f
commit
e2d7f18bb8
@ -141,8 +141,8 @@ class NetworkManager:
|
|||||||
nio_func.__name__, err)
|
nio_func.__name__, err)
|
||||||
self._close_socket(sock)
|
self._close_socket(sock)
|
||||||
|
|
||||||
if err.response.status_code in self.http_retry_codes:
|
if err.response.status_code not in self.http_retry_codes:
|
||||||
return response
|
raise
|
||||||
|
|
||||||
retry.sleep(max_time=10)
|
retry.sleep(max_time=10)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user