fix: normalize fetch_guild errors; guard embed Log field value (v0.1.2)
- _get_guild catches discord.HTTPException (NotFound/Forbidden/HTTPException) from fetch_guild and re-raises the lib's ValueError; the old 'if not resolved' branch was unreachable since fetch_guild never returns None (L10) - build_embed substitutes '(no message)' for empty details and truncates to 1024, so a logging call never 400s the embed send on an empty/over-long message (L11). Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "dpy_logger"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
description = "Leveled Discord channel logger for discord.py — config-free, injectable, installable."
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user