@@ -89,15 +89,14 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
args = ()
kwargs = {}
ttf = beewatch._commands
- if func_name in ttf.keys():
+ if cmd in ttf.keys():
try:
- task = curio.run(
- ttf[func_name](
- # self.bee_api,
- *args,
- command=cmd,
- respond=respond,
- )
+ task = cmd.run(
+ ttf[cmd],
+ # self.bee_api,
+ args=args,
+ command=cmd,
+ respond=respond,
)
except Exception as e:
lserver.error("Error while calling api func",exc_info=e)