PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Crash after sync dev in move_to_map_pokemon.py

Open Gurzeh opened this issue 10 years ago • 3 comments

same as issue #4124

Expected Behavior

Actual Behavior

after start and catching Pokemon, a crash occurs in line: /PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 147, in get_pokemon_from_map if pokemon['dist'] > ((pokemon['expire'] - now) * mean_walk_speed) and not self.config['snipe']: KeyError: 'expire'

Your FULL config.json (remove your username, password, gmapkey and any other private info)

http://pastebin.com/JTUPEe98

Output when issue occurred

http://pastebin.com/nQPhRc8V

Steps to Reproduce

started run.sh

Other Information

OS: OSX Maverick Branch: dev Git Commit: aaaa4807299fc7647a76fd3ba9829664b96f88a7 Python Version: Python 2.7.12

Short Description

Possible solution

How it would help others

Gurzeh avatar Aug 16 '16 23:08 Gurzeh

It seems that 'expire' is not defined. I just commented the test until it is fixed, and the bot works

Gurzeh avatar Aug 16 '16 23:08 Gurzeh

#4115

k4n30 avatar Aug 17 '16 03:08 k4n30

Duplicate of #4113

k4n30 avatar Aug 17 '16 03:08 k4n30