From 7391ecb430436d859d2671189d41748351f94e32 Mon Sep 17 00:00:00 2001 From: Aaditya Sharma Date: Mon, 10 Jun 2019 15:19:33 +0530 Subject: [PATCH] Changes per cmnts --- qds_sdk/connection.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qds_sdk/connection.py b/qds_sdk/connection.py index 48fd10e4..0398acb5 100644 --- a/qds_sdk/connection.py +++ b/qds_sdk/connection.py @@ -156,10 +156,8 @@ def _handle_error(response): sys.stderr.write(response.text + "\n") raise RetryWithDelay(response) elif code == 449: - message = "Data requested is unavailable. Retrying ..." sys.stderr.write(response.text + "\n") - sys.stderr.write(message + "\n") - raise RetryWithDelay(response, message) + raise RetryWithDelay(response, "Data requested is unavailable. Retrying ...") elif 401 <= code < 500: sys.stderr.write(response.text + "\n") raise ClientError(response)