🚑 hotfix CommandHandler call

This commit is contained in:
xtaodada 2024-04-29 22:51:51 +08:00
parent 19b102486d
commit 3aa68d5b50
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -21,6 +21,9 @@ class CommandHandler:
def func(self) -> CommandHandlerFunc: def func(self) -> CommandHandlerFunc:
return self._pgp_func__ return self._pgp_func__
def __call__(self, *args, **kwargs):
return self.func()(*args, **kwargs)
def set_handler(self, handler): def set_handler(self, handler):
self._pgp_raw_handler = handler self._pgp_raw_handler = handler