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}