fix: never-raises net widened to unexpected exceptions; changelog/429 docs (v0.1.4)
M-2: _attempt caught only (aiohttp.ClientError, asyncio.TimeoutError); an unexpected error escaping the attempt (closed injected session -> RuntimeError, malformed proxy url -> ValueError) propagated out of send(), breaking the documented 'never raises on a send failure' contract. add an outer catch-all in _send_loop converting any such exception to a falsy WebhookResult(ok=False), logged at warning with exc_info. aiowebhooks-F3: README 429 section + changelog were stale vs the v0.1.3 'retry any 429' fix; added the no-parseable-wait-still-retries wording and v0.1.3/v0.1.4 changelog entries. verified by execution: closed-session (RuntimeError) and bad-proxy (ValueError) controls both fire and now return ok=False instead of raising. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "aiowebhooks"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
description = "async webhook sender (aiohttp) with round-robin urls, retry, and proxy rotation; optional discord.py embeds"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user