From e2d7f18bb868e2f808506c718da5ce7ee977b896 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 21 Apr 2019 07:04:42 -0400 Subject: [PATCH] Fix net.talk() not raising errors for nio bad resp --- harmonyqml/backend/network_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harmonyqml/backend/network_manager.py b/harmonyqml/backend/network_manager.py index 4a1605db..9f4f1bad 100644 --- a/harmonyqml/backend/network_manager.py +++ b/harmonyqml/backend/network_manager.py @@ -141,8 +141,8 @@ class NetworkManager: nio_func.__name__, err) self._close_socket(sock) - if err.response.status_code in self.http_retry_codes: - return response + if err.response.status_code not in self.http_retry_codes: + raise retry.sleep(max_time=10)