fix: apply timeout parameter to all aiohttp sessions in db_calls.py (#4) #41

Merged
cal merged 3 commits from ai/paper-dynasty-card-creation#4 into main 2026-03-23 13:25:38 +00:00

3 Commits

Author SHA1 Message Date
cal
d7c6e6da27 Merge branch 'main' into ai/paper-dynasty-card-creation#4 2026-03-23 13:25:19 +00:00
cal
3612b0710b Merge branch 'main' into ai/paper-dynasty-card-creation#4 2026-03-23 13:24:43 +00:00
Cal Corum
bd1809261e fix: apply timeout parameter to all aiohttp sessions in db_calls.py (#4)
Closes #4

Every async DB function accepted a `timeout` parameter but never passed
it to aiohttp, causing scripts to hang indefinitely if the API became
unresponsive. Fixed by passing `aiohttp.ClientTimeout(total=timeout)` to
each `aiohttp.ClientSession()` constructor across all six functions:
db_get, url_get, db_patch, db_post, db_put, db_delete.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 01:03:03 -05:00