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)