Commit ad836b6
authored
Fix README error-handling example: AgentScoreError has no .message attr (#34)
## Summary
- The README's error-handling example printed `e.message`, but
`AgentScoreError` exposes its text via `str(e)`, not a `.message`
attribute (`hasattr(err, "message")` is `False`).
- Swap `print(e.code, e.message)` → `print(e.code, str(e))` so the
snippet runs as written.
Docs-only; no version bump.
## Test plan
- [x] `str(e)` returns the error text; `.message` is not an attribute on
`AgentScoreError`
- [x] pre-push hooks (ty, vulture) green1 parent b330571 commit ad836b6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments