Skip to content

Comments

Fix pokemon_evolved event parameters conflict#4415

Closed
cmezh wants to merge 1 commit intoPokemonGoF:devfrom
cmezh:optimizer_event
Closed

Fix pokemon_evolved event parameters conflict#4415
cmezh wants to merge 1 commit intoPokemonGoF:devfrom
cmezh:optimizer_event

Conversation

@cmezh
Copy link
Contributor

@cmezh cmezh commented Aug 20, 2016

Hotfix for error:

Traceback (most recent call last):
  File "pokecli.py", line 674, in <module>
    main()
  File "pokecli.py", line 118, in main
    bot.tick()
  File "/home/cmezh/pogocmezh/pokemongo_bot/__init__.py", line 541, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/cmezh/pogocmezh/pokemongo_bot/cell_workers/pokemon_optimizer.py", line 78, in work
    self.apply_optimization(transfer_all, evo_all)
  File "/home/cmezh/pogocmezh/pokemongo_bot/cell_workers/pokemon_optimizer.py", line 294, in apply_optimization
    self.evolve_pokemon(pokemon)
  File "/home/cmezh/pogocmezh/pokemongo_bot/cell_workers/pokemon_optimizer.py", line 396, in evolve_pokemon
    "xp": xp})
  File "/home/cmezh/pogocmezh/pokemongo_bot/base_task.py", line 35, in emit_event
    data=data
  File "/home/cmezh/pogocmezh/pokemongo_bot/event_manager.py", line 59, in emit
    raise EventMalformedException("Event %s does not require parameter %s" % (event, k))
pokemongo_bot.event_manager.EventMalformedException: Event pokemon_evolved does not require parameter candy

@mention-bot
Copy link

@cmezh, thanks for your PR! By analyzing the annotation information on this pull request, we identified @anakin5, @BriceSD and @Quantra to be potential reviewers

@cmezh
Copy link
Contributor Author

cmezh commented Aug 20, 2016

Sorry. #4389

@cmezh cmezh closed this Aug 20, 2016
@cmezh cmezh deleted the optimizer_event branch August 24, 2016 22:08
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.

2 participants