Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
371428bb6b | ||
|
|
b2bbca0cec |
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "dpy_cache"
|
name = "dpy_cache"
|
||||||
version = "1.0.0"
|
version = "1.1.0"
|
||||||
description = "Persist images/files to a Discord storage channel and get durable, re-resolvable CDN references — config-free, injectable, installable."
|
description = "Persist images/files to a Discord storage channel and get durable, re-resolvable CDN references — config-free, injectable, installable."
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
@@ -138,7 +138,8 @@ class DPYCache:
|
|||||||
try:
|
try:
|
||||||
message = await self._channel.send(content=content, files=discord_files)
|
message = await self._channel.send(content=content, files=discord_files)
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
log.error("dpy_cache: send of %d file(s) to the storage channel failed", len(group))
|
# raise XOR log: HTTPException propagates unwrapped (the documented contract),
|
||||||
|
# so the exception carries the failure to the caller - no error log here.
|
||||||
raise
|
raise
|
||||||
|
|
||||||
attachments = list(message.attachments)
|
attachments = list(message.attachments)
|
||||||
|
|||||||
Reference in New Issue
Block a user