From 411b6ae17f8e358189cfb35e022f2856b624ee32 Mon Sep 17 00:00:00 2001 From: Rutuja Deshmukh Date: Mon, 9 Dec 2024 14:31:44 +0000 Subject: [PATCH] resolves: 'list' object has no attribute 'startswith' --- tap_square/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_square/client.py b/tap_square/client.py index 2e996b6..41f9d43 100644 --- a/tap_square/client.py +++ b/tap_square/client.py @@ -93,7 +93,7 @@ def _retryable_v2_method(request_method, body, **kwargs): is_service_unavailable = 'Service Unavailable' in error_message is_upstream_error = 'upstream connect error or disconnect/reset before headers' in error_message is_cf_error_1101 = '1101' in error_message - is_html_error = error_message.startswith('') + is_html_error = error_message.startswith('') if isinstance(error_message, str) else False is_status_429_or_500 = result.status_code == 429 or result.status_code >= 500 retryable_conditions = {is_service_unavailable, is_upstream_error, is_cf_error_1101, is_html_error, is_status_429_or_500}