mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-23 16:54:56 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
148333a23b
commit
67869c3a79
1 changed files with 5 additions and 1 deletions
|
|
@ -590,7 +590,11 @@ class AGIEvalEnv(BaseEnv):
|
|||
)
|
||||
if hasattr(e, "response"):
|
||||
try:
|
||||
resp_text = e.response.text[:500] if hasattr(e.response, "text") else str(e.response)
|
||||
resp_text = (
|
||||
e.response.text[:500]
|
||||
if hasattr(e.response, "text")
|
||||
else str(e.response)
|
||||
)
|
||||
print(f" Response: {resp_text}")
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue