Skip to content

Commit

Permalink
update restart.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 6, 2025
1 parent f600498 commit 293c932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/modules/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 293c932

Please sign in to comment.