diff --git a/pokemongo_bot/cell_workers/complete_tutorial.py b/pokemongo_bot/cell_workers/complete_tutorial.py index 1706bb6908..4713913896 100644 --- a/pokemongo_bot/cell_workers/complete_tutorial.py +++ b/pokemongo_bot/cell_workers/complete_tutorial.py @@ -15,15 +15,19 @@ def initialize(self): self.api = self.bot.api self.nickname = self.config.get('nickname','') self.team = self.config.get('team',0) + self.may_run = True def should_run(self): - return True + return self.may_run def work(self): if not self.should_run(): return WorkerResult.SUCCESS + # Only execute the worker once to avoid error loop + self.may_run = False + if self._check_tutorial_state(): return WorkerResult.SUCCESS else: