Skip to content

Commit

Permalink
replace asyncio.sleep with time.sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
houshmand-2005 committed May 31, 2024
1 parent 1f87cc8 commit 8abbe4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2iplimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import argparse
import asyncio
import time

from run_telegram import run_telegram_bot
from telegram_bot.send_message import send_logs
Expand Down Expand Up @@ -101,4 +102,4 @@ async def main():
asyncio.run(main())
except Exception as er: # pylint: disable=broad-except
logger.error(er)
asyncio.sleep(10)
time.sleep(10)

0 comments on commit 8abbe4d

Please sign in to comment.