bugfix
This commit is contained in:
parent
14de707d79
commit
c199e26896
@ -22,10 +22,10 @@ class RegisterFunction:
|
|||||||
async def exe(self, name, *args, **kw):
|
async def exe(self, name, *args, **kw):
|
||||||
f = self.get(name)
|
f = self.get(name)
|
||||||
if f is None:
|
if f is None:
|
||||||
error(f'{name=} function not registed')
|
# error(f'{name=} function not registed')
|
||||||
return None
|
return None
|
||||||
if iscoroutinefunction(f):
|
if iscoroutinefunction(f):
|
||||||
info(f'{name=} is coroutine function');
|
# info(f'{name=} is coroutine function');
|
||||||
return await f(*args, **kw)
|
return await f(*args, **kw)
|
||||||
return f(*args, **kw)
|
return f(*args, **kw)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user