From 4d03d6e16e4b2ada63a186061ab618fbb5f256ff Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Wed, 27 Dec 2023 22:41:53 +0000 Subject: [PATCH] Laura: Fix runtime warning: coroutine was never awaited ``` /usr/lib/python3.11/asyncio/events.py:73: RuntimeWarning: coroutine 'send_update' was never awaited self._args = None RuntimeWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.11/asyncio/events.py:73: RuntimeWarning: coroutine 'send_status' was never awaited self._args = None RuntimeWarning: Enable tracemalloc to get the object allocation traceback ``` Thank you, Laura --- slixfeed/taskhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixfeed/taskhandler.py b/slixfeed/taskhandler.py index d3a51f1..9db7ae0 100644 --- a/slixfeed/taskhandler.py +++ b/slixfeed/taskhandler.py @@ -364,7 +364,7 @@ async def refresh_task(self, jid, callback, key, val=None): task_manager[jid][key] = loop.call_at( loop.time() + 60 * float(val), loop.create_task, - callback(self, jid) + (callback(self, jid)) # send_update(jid) ) # task_manager[jid][key] = loop.call_later(