We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26fd722 commit 187b3f8Copy full SHA for 187b3f8
tempoapiclient/rest_client.py
@@ -45,7 +45,7 @@ def _response_handler(self, response):
45
try:
46
# If the response was successful, no Exception will be raised
47
response.raise_for_status()
48
- return response.json()
+ return response.json() if response.content else {}
49
50
except HTTPError as http_err:
51
log.error(f'HTTP error occurred: {http_err.response.text}')
0 commit comments