Compare commits
1
Commits
main
..
a818813cdd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a818813cdd |
@@ -9,7 +9,7 @@ bites you.
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```
|
||||||
dpy_cache @ git+ssh://git@git.rethinkstudios.io/rethink-public/dpy_cache.git@v1.0.0
|
dpy_cache @ git+ssh://git@git.rethinkstudios.io/rethink-public/dpy_cache.git@v0.1.2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "dpy_cache"
|
name = "dpy_cache"
|
||||||
version = "1.1.0"
|
version = "1.0.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,8 +138,7 @@ 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:
|
||||||
# raise XOR log: HTTPException propagates unwrapped (the documented contract),
|
log.error("dpy_cache: send of %d file(s) to the storage channel failed", len(group))
|
||||||
# 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