From 3aa68d5b505aa1cec9cb9f18d75ce6c4758c614d Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 29 Apr 2024 22:51:51 +0800 Subject: [PATCH] :ambulance: hotfix CommandHandler call --- pagermaid/enums/command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pagermaid/enums/command.py b/pagermaid/enums/command.py index fa3b86e..0b1fcfb 100644 --- a/pagermaid/enums/command.py +++ b/pagermaid/enums/command.py @@ -21,6 +21,9 @@ class CommandHandler: def func(self) -> CommandHandlerFunc: return self._pgp_func__ + def __call__(self, *args, **kwargs): + return self.func()(*args, **kwargs) + def set_handler(self, handler): self._pgp_raw_handler = handler