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

Fix exception if account isn't selected yet. #2462

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

sebastienvercammen
Copy link
Member

Description

An exception can occur before an account was selected.

Motivation and Context

  File "/RocketMap/RocketMap-git/pogom/models.py", line 2413, in encounter_pokemon
    hlvl_account['username'],
TypeError: 'NoneType' object has no attribute '__getitem__'

How Has This Been Tested?

Untested.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.

@sebastienvercammen sebastienvercammen merged commit e866af0 into RocketMap:develop Jan 25, 2018
tomballgithub pushed a commit to tomballgithub/RocketMap that referenced this pull request Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants