소스 검색

small bugfix

digital 7 년 전
부모
커밋
e54d5cbae8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/beewatch/server/__init__.py

+ 1 - 1
lib/beewatch/server/__init__.py

@@ -79,7 +79,7 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
             return
         try:
             retval = func(**kwargs)
-            if type(retval) is curio.coroutine:
+            if hasattr(retval,"__await__"):
                 lserver.debug("curio.run started")
                 task = curio.run(retval)
                 lserver.debug("curio.run finished")