Fix net.talk() not raising errors for nio bad resp

This commit is contained in:
miruka 2019-04-21 07:04:42 -04:00
parent 2c5dc7bd4f
commit e2d7f18bb8

View File

@ -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)