initialize() previously let a bad construction channel id leak raw discord.errors.NotFound/Forbidden/HTTPException past the documented ValueError-only setup contract, and let an already-resolved non-TextChannel object (Thread/VoiceChannel/ForumChannel) pass silently, later misrouting or blackholing every send. Wrap the construction-channel fetch in the same try/except as the settings path and type-check the resolved-object channel path, mirroring the existing int-path guard. Widened the normalization tuple to also catch discord.ClientException (covers InvalidData), fixing dpylogger-9 opportunistically since it's the same pattern. Bump to v0.1.5. Signed-off-by: disqualifier <dev@disqualifier.me>
16 lines
360 B
TOML
16 lines
360 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "dpy_logger"
|
|
version = "0.1.5"
|
|
description = "Leveled Discord channel logger for discord.py — config-free, injectable, installable."
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"discord.py>=2.0",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/dpy_logger"]
|