From cd084b7abaef129a147ff57f28cbe68d2d01c4bc Mon Sep 17 00:00:00 2001 From: Dmitry Ovodov Date: Sat, 13 Aug 2016 01:26:12 +0700 Subject: [PATCH] Revert #3500 Fix error when MoveToFort called from handle_soft_ban.py (#3772) Useless since #3629 was merged --- pokemongo_bot/cell_workers/move_to_fort.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pokemongo_bot/cell_workers/move_to_fort.py b/pokemongo_bot/cell_workers/move_to_fort.py index 24ecf5e74a..2be287e86c 100644 --- a/pokemongo_bot/cell_workers/move_to_fort.py +++ b/pokemongo_bot/cell_workers/move_to_fort.py @@ -13,13 +13,9 @@ class MoveToFort(BaseTask): def initialize(self): self.lure_distance = 0 - if self.config: - self.lure_attraction = self.config.get("lure_attraction", True) - self.lure_max_distance = self.config.get("lure_max_distance", 2000) - self.ignore_item_count = self.config.get("ignore_item_count", False) - else: - self.lure_attraction = None - self.ignore_item_count = True + self.lure_attraction = self.config.get("lure_attraction", True) + self.lure_max_distance = self.config.get("lure_max_distance", 2000) + self.ignore_item_count = self.config.get("ignore_item_count", False) def should_run(self): has_space_for_loot = self.bot.has_space_for_loot()