Skip to content

Commit

Permalink
Merge pull request #135 from ghostty-org/fix-134
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c authored Jan 23, 2025
2 parents 0ca7da9 + 278c7a5 commit 363d769
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/components/entity_mentions/fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ async def entity_message(message: discord.Message) -> tuple[str, int]:
)

entities = [
_format_mention(entity, kind)
for kind, entity in await asyncio.gather(
*(entity_cache.get(*m) for m in matches)
_format_mention(outcome[1], outcome[0])
for outcome in await asyncio.gather(
*(entity_cache.get(*m) for m in matches),
return_exceptions=True,
)
if not isinstance(outcome, BaseException)
]

if len("\n".join(entities)) > 2000:
Expand Down

0 comments on commit 363d769

Please sign in to comment.