diff --git a/deployment/harmony_deploy.py b/deployment/harmony_deploy.py index 57e46f97..312ad831 100644 --- a/deployment/harmony_deploy.py +++ b/deployment/harmony_deploy.py @@ -59,9 +59,6 @@ def bearer_token() -> str: } response = requests.put(url, headers=headers, json=data) + response.raise_for_status() - print(response.status_code) - try: - print(response.json()) - except json.JSONDecodeError: - print("Response content is not in JSON format") + print(f"Response JSON: {response.json()}")