fix(userbot): add missing safone.py imports, apply ruff --unsafe-fixes
- Add missing aiohttp, PIL, BytesIO imports to safone.py (F821 runtime bugs) - Apply ruff --unsafe-fixes (27 fixes): ternary operators, .get() patterns, contextlib.suppress, enumerate(), collapsible if/else, remove .keys()
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ async def help_cmd(_, message: Message):
|
||||
command_name = message.command[1].lower()
|
||||
module_found = False
|
||||
for module_name, commands in modules_help.items():
|
||||
for command in commands.keys():
|
||||
for command in commands:
|
||||
if command.split()[0] == command_name:
|
||||
cmd = command.split(maxsplit=1)
|
||||
cmd_desc = commands[command]
|
||||
|
||||
Reference in New Issue
Block a user