fix: catch aiohttp.ClientError in all API call functions (#29) #57

Merged
cal merged 1 commits from ai/paper-dynasty-discord-29 into next-release 2026-03-07 07:43:04 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
d150e66bc7 fix: catch aiohttp.ClientError in all API call functions (#29)
DNS failures and refused connections raised raw aiohttp errors to Discord
users. Added except aiohttp.ClientError handlers to db_get, db_patch,
db_post, db_put, and db_delete — each logs the error and raises
DatabaseError for consistent handling upstream.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 01:33:09 -06:00