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 293c932 commit 5cfcb5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/modules/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ async def send_incomplete_task_message(cid, msg_id, msg):
async def restart_notification():
if await aiopath.isfile(".restartmsg"):
async with aiopen(".restartmsg") as f:
chat_id, msg_id = map(int, await f.read().splitlines())
content = await f.read()
chat_id, msg_id = map(int, content.splitlines())
else:
chat_id, msg_id = 0, 0

Expand Down

0 comments on commit 5cfcb5d

Please sign in to comment.