From 32afdd13db27382c5f656bf4c7c6daf8fa0ef16e Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 27 Jun 2024 01:45:33 +0800 Subject: [PATCH] Fix: Raise RequestHumanTakeover if rogue team wasn't prepared --- tasks/rogue/rogue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/rogue/rogue.py b/tasks/rogue/rogue.py index 9c91b3b1c..66c6f8010 100644 --- a/tasks/rogue/rogue.py +++ b/tasks/rogue/rogue.py @@ -1,4 +1,4 @@ -from module.exception import ScriptError +from module.exception import RequestHumanTakeover from module.logger import logger from tasks.battle_pass.keywords import KEYWORDS_BATTLE_PASS_QUEST from tasks.daily.keywords import KEYWORDS_DAILY_QUEST @@ -21,7 +21,7 @@ class Rogue(RouteLoader, RogueEntry): except RogueTeamNotPrepared: logger.error(f'Please prepare your team in {self.config.RogueWorld_World} ' f'and start rogue task at team preparation page') - raise ScriptError + raise RequestHumanTakeover except RogueReachedWeeklyPointLimit: logger.hr('Reached rogue weekly point limit') return False