Skip to content

Commit

Permalink
🎨 Format - ran black
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Jan 7, 2024
1 parent d307e4d commit 2005016
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agenta-backend/agenta_backend/services/evaluators_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def auto_webhook_test(
payload = {}
if isinstance(webhook_body, dict):
payload = webhook_body
response = client.post(
url=settings_values["webhook_url"], json=payload
)
response = client.post(url=settings_values["webhook_url"], json=payload)
response.raise_for_status()
response_data = response.json()
score = response_data.get("score", None)
Expand All @@ -73,6 +71,7 @@ def auto_webhook_test(
print(f"An HTTP error occurred: {e}")
except Exception as e:
import traceback

traceback.print_exc()
print(f"An error occurred: {e}")

Expand Down

0 comments on commit 2005016

Please sign in to comment.