Преглед изворни кода

small fix with calling the api func

digital пре 8 година
родитељ
комит
9c820090d9
1 измењених фајлова са 6 додато и 5 уклоњено
  1. 6 5
      lib/beewatch/server/__init__.py

+ 6 - 5
lib/beewatch/server/__init__.py

@@ -96,11 +96,12 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
         if cmd in ttf.keys():
             try:
                 task = curio.run(
-                    ttf[cmd],
-                    # self.bee_api,
-                    args=args,
-                    command=cmd,
-                    respond=self.respond,
+                    ttf[cmd](
+                        # self.bee_api,
+                        args=args,
+                        command=cmd,
+                        respond=self.respond,
+                    )
                 )
             except Exception as e:
                 lserver.error("Error while calling api func",exc_info=e)