Skip to content

Commit 22bd71f

Browse files
committed
fix: handle duplicate symbols
1 parent 8d685c2 commit 22bd71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/info/doc/_cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ async def _get_symbols_items(self, symbols: list[str]) -> list[tuple[str, DocIte
281281
# Ensure a refresh can't run in case of a context switch until the with block is exited
282282
with self.symbol_get_event:
283283
items: list[tuple[str, DocItem | None]] = []
284-
for symbol_name in symbols:
284+
for symbol_name in set(symbols):
285285
symbol_name, doc_item = self.get_symbol_item(symbol_name)
286286
if doc_item:
287287
items.append((symbol_name, doc_item))

0 commit comments

Comments
 (0)