Commit 049c2c4
fix(error-handling): fix critical async bugs in decorators
- Fix missing await in all async wrapper functions:
- handle_errors: Fixed line 63
- retry_on_network_error: Fixed line 191
- handle_rate_limit: Fixed line 300 and retry on line 334
- validate_response: Fixed line 372
- All async functions are now properly awaited
- All error handler tests now pass (24/24)
- This fixes the critical bugs identified in PR review
These were serious bugs that would cause runtime failures when
async functions were decorated. The decorators were calling
async functions without await, returning coroutine objects
instead of executing them.
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 95d4f96 commit 049c2c4
1 file changed
+5
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
192 | 188 | | |
193 | 189 | | |
194 | 190 | | |
195 | | - | |
| 191 | + | |
196 | 192 | | |
197 | 193 | | |
198 | 194 | | |
| |||
301 | 297 | | |
302 | 298 | | |
303 | 299 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 300 | + | |
309 | 301 | | |
310 | 302 | | |
311 | 303 | | |
| |||
339 | 331 | | |
340 | 332 | | |
341 | 333 | | |
342 | | - | |
| 334 | + | |
343 | 335 | | |
344 | 336 | | |
345 | 337 | | |
| |||
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 372 | + | |
384 | 373 | | |
385 | 374 | | |
386 | 375 | | |
| |||
0 commit comments