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

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Adastras
Copy link

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
Contributor

DayBr3ak commented Jul 29, 2016

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

@solderzzc
Copy link
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