Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidakachaos committed Jul 18, 2017
1 parent 7b95e6a commit 826d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/spin_fort.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 826d86a

Please sign in to comment.