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

After evolving, program still tries to use old release_config.json file #855

Closed
perryhuynh opened this issue Jul 25, 2016 · 0 comments
Closed
Labels

Comments

@perryhuynh
Copy link

perryhuynh commented Jul 25, 2016

Expected Behavior

After evolving, program checks to see if the newly evolved pokemon need to be released

Actual Behavior

After evolving, program checks to see if the newly evolved pokemon need to be released (possibly trying to look for the old release_config.json file and crashes?)

Steps to Reproduce

Start bot, bot evolves pokemon then goes through release check and crashes.

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

[19:15:45] Starting PokemonGo Bot....
[19:15:45] Scanning area for objects....
[19:15:45] Walking from (34.0092278, -118.4973045) to (34.0092278, -118.4973045) 0.00km
[19:15:47] Attempting to evolve all pokemons ...
[#] Successfully evolved Ekans with 206 cp!
[#] Successfully evolved Geodude with 60 cp!
[#] Evolved 2 pokemons! Checking if any of them needs to be released ...
Traceback (most recent call last):
  File "pokecli.py", line 223, in <module>
    main()
  File "pokecli.py", line 214, in main
    bot.take_step()
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/__init__.py", line 41, in take_step
    self.work_on_cell(cell, location)
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/__init__.py", line 145, in work_on_cell
    worker.work()
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 48, in work
    self._release_evolved(release_cand_list_ids)
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 71, in _release_evolved
    if self.should_release_pokemon(pokemon_name, pokemon_cp, pokemon_potential):
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 155, in should_release_pokemon
    if self._check_always_capture_exception_for(pokemon_name):
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 219, in _check_always_capture_exception_for
    always_capture_list = self._get_always_capture_list()
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 210, in _get_always_capture_list
    exceptions = self._get_exceptions()
  File "/home/pi/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_all_worker.py", line 204, in _get_exceptions
    exceptions = self.config.release_config.get('exceptions')
AttributeError: 'Namespace' object has no attribute 'release_config'
solderzzc pushed a commit that referenced this issue Jul 26, 2016
Previously was trying to access config.release_config changed in commit 33a0ad6
MFizz pushed a commit to MFizz/PokemonGo-Bot that referenced this issue Jul 29, 2016
…onGoF#859)

Previously was trying to access config.release_config changed in commit 33a0ad6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants