Fix checks, broken by #60 #72

Merged
Gnome-py merged 1 commits from 2.0 into 2.0 2021-09-21 21:34:55 +00:00

View File

@ -399,9 +399,9 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
command_attrs = {}
try:
checks = command_attrs.pop("checks")
checks = func.__commands_checks__
checks.reverse()
except KeyError:
except AttributeError:
checks = kwargs.get("checks", [])
try: