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 bot crash at start if permabanned #4822

Merged
merged 1 commit into from
Aug 27, 2016
Merged

Fix bot crash at start if permabanned #4822

merged 1 commit into from
Aug 27, 2016

Conversation

Gobberwart
Copy link
Contributor

Short Description:

Bot not initialised (still set to "False") before trying to access event manager caused the following error:

"2016-08-27 20:10:17,371 [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'bool' object has no attribute 'event_manager'", u' File "pokecli.py", line 746, in ', u' File "pokecli.py", line 170, in main']"

Separated bot initialize and start methods.

Fixes/Resolves/Closes (please use correct syntax):

@mention-bot
Copy link

@Gobberwart, thanks for your PR! By analyzing the annotation information on this pull request, we identified @douglascamata, @TheSavior and @mjmadsen to be potential reviewers

@Gobberwart Gobberwart changed the title Fix bot crash at start on permaban Fix bot crash at start if permabanned Aug 27, 2016
@Gobberwart
Copy link
Contributor Author

It looks like there are a number of other events that MIGHT be raised during bot startup that will cause crash if the bot is still set to "False". This PR should fix all of those.

@mjmadsen
Copy link
Contributor

Thanks for the PR

@mjmadsen mjmadsen merged commit 5f027f5 into PokemonGoF:dev Aug 27, 2016
alexyaoyang pushed a commit to alexyaoyang/PokemonGo-Bot that referenced this pull request Aug 28, 2016
alexyaoyang added a commit that referenced this pull request Aug 28, 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