Skip to content

Commit

Permalink
Merge pull request #69 from archdotdev/error_handling_raises_new_error
Browse files Browse the repository at this point in the history
fix: handle errors better
  • Loading branch information
pnadolny13 authored Dec 9, 2024
2 parents 96620ab + 51b64f8 commit c536a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_service_titan/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c536a64

Please sign in to comment.