[add]: threading for Kafa integration

This commit is contained in:
VivianDee
2025-04-03 12:35:50 +01:00
parent b180f8411d
commit 79ac972841
6 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ class SimbrellaIntegration:
response = requests.post(url, json=payload, timeout=10)
# Raise an error for non-200 responses
# response.raise_for_status()
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as err:
logger.error(f"RACCheck API call failed: {str(err)}", exc_info=True)
return {"error": "RACCheck API error", "details": str(err)}
return {"error": "RACCheck API error"}