Skip to content

Commit

Permalink
Fix resizing regression
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Oct 23, 2024
1 parent 452b69a commit d4574e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/adapters/discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ async def _send_post(
if e.status != 413: # Payload too large
raise e
if post.buffer is not None:
logger.info('File too large, resizing...', size=len(post.buffer))
logger.info('File too large, resizing...', size=post.buffer.getbuffer().nbytes)
post.buffer.seek(0)
post.buffer = await utils.resize(buffer=post.buffer, extension=extension)
return await self._send_post(post=post, send_func=send_func, author=author)
Expand Down

0 comments on commit d4574e9

Please sign in to comment.