Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after sync dev in move_to_map_pokemon.py #4125

Closed
Gurzeh opened this issue Aug 16, 2016 · 3 comments
Closed

Crash after sync dev in move_to_map_pokemon.py #4125

Gurzeh opened this issue Aug 16, 2016 · 3 comments

Comments

@Gurzeh
Copy link
Contributor

Gurzeh commented Aug 16, 2016

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: aaaa480
Python Version: Python 2.7.12

Short Description

Possible solution

How it would help others

@Gurzeh
Copy link
Contributor Author

Gurzeh commented Aug 16, 2016

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

@k4n30
Copy link
Contributor

k4n30 commented Aug 17, 2016

#4115

@k4n30
Copy link
Contributor

k4n30 commented Aug 17, 2016

Duplicate of #4113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants