We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Remove all try/catch checks for properties and replace with .get('prop_name', {})
try: inventory_items = response_dict['responses']['GET_INVENTORY']['inventory_delta']['inventory_items'] for item in inventory_items: # print('item {}'.format(item)) if 'inventory_item_data' in item: item_data = item['inventory_item_data'] if 'pokemon_data' in item_data: pokecount += 1 if 'item' in item_data and 'count' in item_data['item']: itemcount += item_data['item']['count'] except KeyError: pass
The text was updated successfully, but these errors were encountered:
I got this one
Sorry, something went wrong.
Cleaned up __init__ to not use try/catch statements.
b1c5311
Fixes #70
dd8523a
Cleanup/remove try catch (#96)
d130493
* Specified Exception better * Fixed faulty logic in _remove_ignored_pokemon * Cleaned up __init__ to not use try/catch statements. Fixes #70 * Updated pylintrc * Fixed some bugs Revert changing requirements * Fixed exceptions and pylint Fixed bugs
meyer9
No branches or pull requests
Remove all try/catch checks for properties and replace with .get('prop_name', {})
The text was updated successfully, but these errors were encountered: