From 3a22813ad5bbbf1f65d823e0770e9f7bdd85046e Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 15 Jun 2024 00:02:48 +0800 Subject: [PATCH] Opt: Stop at RogueTeamNotPrepared so users can be informed --- 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 5e2f56750..92b78a45d 100644 --- a/tasks/rogue/rogue.py +++ b/tasks/rogue/rogue.py @@ -1,3 +1,4 @@ +from module.exception import ScriptError from module.logger import logger from tasks.battle_pass.keywords import KEYWORDS_BATTLE_PASS_QUEST from tasks.daily.keywords import KEYWORDS_DAILY_QUEST @@ -20,8 +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') - self.rogue_world_exit() - return False + raise ScriptError except RogueReachedWeeklyPointLimit: logger.hr('Reached rogue weekly point limit') return False