This commit is contained in:
yumoqing 2024-10-25 16:25:29 +08:00
parent 14de707d79
commit c199e26896

View File

@ -22,10 +22,10 @@ class RegisterFunction:
async def exe(self, name, *args, **kw):
f = self.get(name)
if f is None:
error(f'{name=} function not registed')
# error(f'{name=} function not registed')
return None
if iscoroutinefunction(f):
info(f'{name=} is coroutine function');
# info(f'{name=} is coroutine function');
return await f(*args, **kw)
return f(*args, **kw)