(fix) show error in test_keys

This commit is contained in:
ishaan-jaff 2024-02-02 19:15:03 -08:00
parent bfe2faa454
commit 419bddae93

View file

@ -234,7 +234,9 @@ async def get_key_info(session, call_key, get_key=None):
return status
else:
print(f"call_key: {call_key}; get_key: {get_key}")
raise Exception(f"Request did not return a 200 status code: {status}")
raise Exception(
f"Request did not return a 200 status code: {status}. Responses {response_text}"
)
return await response.json()