Skip to content

Added retries for get_inventory if no GET_INVENTORY in response.#1519

Closed
Adastras wants to merge 1 commit intoPokemonGoF:devfrom
Adastras:dev
Closed

Added retries for get_inventory if no GET_INVENTORY in response.#1519
Adastras wants to merge 1 commit intoPokemonGoF:devfrom
Adastras:dev

Conversation

@Adastras
Copy link
Copy Markdown

Short Description: Performs an exponential backoff retry on api.get_inventory() if response['responses']['GET_INVENTORY'] doesn't exist. Should clear up most KeyError: 'GET_INVENTORY' issues.

Also fixed pokemon_transfer_worker.py to use the bot.get_inventory() (thus using this code) instead of a direct api get_inventory().

Fixes: #1491

@DayBr3ak
Copy link
Copy Markdown
Contributor

DayBr3ak commented Jul 29, 2016

Actually #1499 kinda do that but for all api calls, not just inventory

@solderzzc
Copy link
Copy Markdown
Contributor

Added while inside main while logic will cause reading issue.
Thanks for PR anyway.

@solderzzc solderzzc closed this Jul 29, 2016
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