[add]: threading for Kafa integration
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user