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

Hotfix 2 for gyms #6114

Merged
merged 2 commits into from
Jul 23, 2017
Merged

Hotfix 2 for gyms #6114

merged 2 commits into from
Jul 23, 2017

Conversation

goedzo
Copy link
Contributor

@goedzo goedzo commented Jul 23, 2017

Fixes:

[2017-07-23 16:45:09] [ cli] [INFO] Most Perfect Pokemon: Goldeen [CP: 388] [IV: 15/7/14] Potential: 0.8
Traceback (most recent call last):
File "pokecli.py", line 884, in
main()
File "pokecli.py", line 206, in main
bot.tick()
File "/usr/src/app/pokemongo_bot/init.py", line 834, in tick
if worker.work() == WorkerResult.RUNNING:
File "/usr/src/app/pokemongo_bot/cell_workers/gym_pokemon.py", line 156, in work
result = self.move_to_destination()
File "/usr/src/app/pokemongo_bot/cell_workers/gym_pokemon.py", line 322, in move_to_destination
self.drop_pokemon_in_gym(self.destination, current_pokemons)
File "/usr/src/app/pokemongo_bot/cell_workers/gym_pokemon.py", line 465, in drop_pokemon_in_gym
if not first_time:
UnboundLocalError: local variable 'first_time' referenced before assignment

@mention-bot
Copy link

@goedzo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @davidakachaos to be a potential reviewer.

Merge pull request PokemonGoF#6113 from goedzo/PokemonGoF-Dev
@Jcolomar Jcolomar merged commit 9f3bbca into PokemonGoF:dev Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants