Commit 2ccfb90
committed
refactor: improve error handling in AgentHumanAPI
- Enhanced exception handling in the AgentHumanAPI class to separately manage APIStatusError and AgentHumanException.
- Added logging for non-retryable APIStatusError to provide better insights during failures.
- Adjusted retry logic to ensure proper handling of exceptions and maintain clarity in error reporting.1 parent 1cf3a30 commit 2ccfb90
1 file changed
Lines changed: 12 additions & 3 deletions
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
| |||
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | | - | |
132 | | - | |
| 138 | + | |
| 139 | + | |
133 | 140 | | |
| 141 | + | |
| 142 | + | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
0 commit comments