Максим Кошкин
Ученик
(179),
на голосовании
4 месяца назад
Traceback (most recent call last): File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 452, in _load_from_module_spec spec.loader.exec_module(lib) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 936, in exec_module File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "C:\Users\Максимка\Desktop\sexbot\cogs\user_cmd.py", line 10 @commands.Cog.listener() ^ IndentationError: unindent does not match any outer indentation level
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\Максимка\Desktop\sexbot\bot.py", line 29, in <module> bot.load_extension(f"cogs.{filename[:-3]}") File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 523, in load_extension self._load_from_module_spec(spec, name) File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 455, in _load_from_module_spec raise errors.ExtensionFailed(key, e) from e disnake.ext.commands.errors.ExtensionFailed: Extension 'cogs.user_cmd' raised an error: IndentationError: unindent does not match any outer indentation level (user_cmd.py, line 10)
УЖЕ БЛИН 500 РАЗ ПЕРЕДЕЛЫВАЛ КОД, НИЧЕГО НЕ ПОМОГЛО
File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 452, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 936, in exec_module
File "<frozen importlib._bootstrap_external>", line 1074, in get_code
File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\Максимка\Desktop\sexbot\cogs\user_cmd.py", line 10
@commands.Cog.listener()
^
IndentationError: unindent does not match any outer indentation level
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Максимка\Desktop\sexbot\bot.py", line 29, in <module>
bot.load_extension(f"cogs.{filename[:-3]}")
File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 523, in load_extension
self._load_from_module_spec(spec, name)
File "C:\Users\Максимка\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 455, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
disnake.ext.commands.errors.ExtensionFailed: Extension 'cogs.user_cmd' raised an error: IndentationError: unindent does not match any outer indentation level (user_cmd.py, line 10)
УЖЕ БЛИН 500 РАЗ ПЕРЕДЕЛЫВАЛ КОД, НИЧЕГО НЕ ПОМОГЛО