Skip to content

Commit

Permalink
Added debug info for too large embed
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Sep 4, 2024
1 parent 8210c84 commit a240c3d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cogs/loops/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,13 @@ async def post_tweet(

else:
# Use the normal send function
msg = await channel.send(content=get_tagged_users(tickers), embed=e)
msgs.append(msg)
try:
msg = await channel.send(content=get_tagged_users(tickers), embed=e)
msgs.append(msg)
except discord.HTTPException:
logger.error(
f"Could not post tweet on timeline, with the following info. Embed: {e.to_dict()}. Media: {media}, Tickers: {tickers}"
)

if user_channel:
msg = await user_channel.send(
Expand Down

0 comments on commit a240c3d

Please sign in to comment.