From 2005016d88ae83000301517885ab6fce1a3bb270 Mon Sep 17 00:00:00 2001 From: Abram Date: Sun, 7 Jan 2024 02:10:57 +0100 Subject: [PATCH] :art: Format - ran black --- agenta-backend/agenta_backend/services/evaluators_service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agenta-backend/agenta_backend/services/evaluators_service.py b/agenta-backend/agenta_backend/services/evaluators_service.py index fdaef49470..8878cf8820 100644 --- a/agenta-backend/agenta_backend/services/evaluators_service.py +++ b/agenta-backend/agenta_backend/services/evaluators_service.py @@ -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) @@ -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}")