Skip to content

Commit 1df7744

Browse files
committed
🐛 Fix current_category initialization by removing list conversion
1 parent 41666ff commit 1df7744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/help/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(
100100
self.bot = bot
101101
self.categories_data = categories_data
102102
self.ui_translations = ui_translations
103-
self.current_category = next(list(categories_data.keys()))
103+
self.current_category = next(iter(categories_data.keys()))
104104
self.current_page = 0
105105
self.total_pages = len(categories_data[self.current_category])
106106

0 commit comments

Comments
 (0)