Seen responses
This commit is contained in:
@@ -49,12 +49,7 @@ class SimbrellaIntegration:
|
||||
if response.status_code != 200:
|
||||
response.raise_for_status()
|
||||
|
||||
result = {
|
||||
'response': response,
|
||||
'status': response.status_code
|
||||
}
|
||||
return json.dumps(result)
|
||||
#return result.json()
|
||||
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"}
|
||||
|
||||
Reference in New Issue
Block a user