diff --git a/tap_service_titan/client.py b/tap_service_titan/client.py index 71609aa..1388ee2 100644 --- a/tap_service_titan/client.py +++ b/tap_service_titan/client.py @@ -95,7 +95,7 @@ def response_error_message(self, response: requests.Response) -> str: str: The error message """ default = super().response_error_message(response) - if "title" in response.json(): + if response.content and "title" in response.json(): title = response.json()["title"] return f"{default}. {title}" return default