From 826d86abb756e9fc4df024f510616a7f36401353 Mon Sep 17 00:00:00 2001 From: David Westerink Date: Tue, 18 Jul 2017 19:32:17 +0200 Subject: [PATCH] Quick fix --- pokemongo_bot/cell_workers/spin_fort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/spin_fort.py b/pokemongo_bot/cell_workers/spin_fort.py index 5712dd27e0..1f7d971403 100644 --- a/pokemongo_bot/cell_workers/spin_fort.py +++ b/pokemongo_bot/cell_workers/spin_fort.py @@ -284,7 +284,7 @@ def work(self): def get_forts_in_range(self): forts = self.bot.get_forts(order_by_distance=True) forts = filter(lambda fort: fort["id"] not in self.bot.fort_timeouts, forts) - if self.bot.camping_forts and self.try_to_keep_streak: + if hasattr(self.bot, "camping_forts") and self.bot.camping_forts and self.try_to_keep_streak: if datetime.now() >= self.next_update: self.logger.info("Camping forts, ignoring 10 stops streak.") elif self.try_to_keep_streak: