diff --git a/bot/modules/restart.py b/bot/modules/restart.py index 144fb9538..b79d48ddd 100644 --- a/bot/modules/restart.py +++ b/bot/modules/restart.py @@ -66,7 +66,7 @@ async def send_incomplete_task_message(cid, msg_id, msg): async def restart_notification(): if await aiopath.isfile(".restartmsg"): - with aiopen(".restartmsg") as f: + async with aiopen(".restartmsg") as f: chat_id, msg_id = map(int, await f.read().splitlines()) else: chat_id, msg_id = 0, 0