Opt: Stop at RogueTeamNotPrepared so users can be informed

This commit is contained in:
LmeSzinc 2024-06-15 00:02:48 +08:00
parent 2b5ade4c6c
commit 3a22813ad5

View File

@ -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