Skip to content

Commit 36bca00

Browse files
committed
Fix README error-handling example: AgentScoreError has no .message attr
The except block printed e.message, but AgentScoreError exposes its text via str(e), not a .message attribute. Use str(e) so the example runs.
1 parent b330571 commit 36bca00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ except QuotaExceededError as e:
211211
except AgentScoreTimeoutError:
212212
print("Network timeout — retry with backoff.")
213213
except AgentScoreError as e:
214-
print(e.code, e.message)
214+
print(e.code, str(e))
215215
```
216216

217217
## Quota observability

0 commit comments

Comments
 (0)