Fixed compatibility

This commit is contained in:
Alex Root Junior 2023-07-17 02:46:34 +03:00
parent 1e43dfc486
commit c250413d55
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -191,7 +191,7 @@ class Command(Filter):
return command # noqa: RET504
def do_magic(self, command: CommandObject) -> Any:
if not self.magic:
if self.magic is None:
return command
result = self.magic.resolve(command)
if not result: