From 25e395f9b2999b340d2d5ef49dec39b5fb2d89db Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 17 Dec 2024 17:33:09 +0100 Subject: [PATCH] Fixed logging in issue. --- src/ragnar/cli.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ragnar/cli.py b/src/ragnar/cli.py index 226bee2..b6a805c 100644 --- a/src/ragnar/cli.py +++ b/src/ragnar/cli.py @@ -19,12 +19,10 @@ def parse_args(): def bot_task(username, password): log.info(f"Created new bot runniner. Username: {username}") while True: - - time.sleep(random.randint(1, 50)) - bot = Bot(username=username, password=password) - bot.login() - try: + time.sleep(random.randint(1, 50)) + bot = Bot(username=username, password=password) + bot.login() bot.fight() except Exception as ex: log.critical(ex, exc_info=True)