diff --git a/appPublic/worker.py b/appPublic/worker.py index b0f36d5..1179cfd 100755 --- a/appPublic/worker.py +++ b/appPublic/worker.py @@ -14,10 +14,10 @@ def awaitify(sync_func): return async_func def coroutinify(func): - @wraps(sync_func) + @wraps(func) async def async_func(*args): loop = asyncio.get_event_loop() - return await loop.run_in_executor(None, sync_func, *args) + return await loop.run_in_executor(None, func, *args) return async_func def to_func(func):