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 TypeError: object of type 'NoneType' has no len() on telegram event handler initialization #5252

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

rbusquet
Copy link
Contributor

@rbusquet rbusquet commented Sep 6, 2016

If the database is instantiated for the first time, the 'res' object may be None.

@mention-bot
Copy link

@rbusquet, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DBa2016, @solderzzc and @askovpen to be potential reviewers

@solderzzc
Copy link
Contributor

solderzzc commented Sep 6, 2016

👍

Approved with PullApprove

@solderzzc solderzzc merged commit 3d65681 into PokemonGoF:dev Sep 6, 2016
@DBa2016
Copy link
Contributor

DBa2016 commented Sep 6, 2016

Thanks @rbusquet, I missed to test after the final change with not-existing tables - and according to docs, fetchone() returns "empty list", not "None" :(

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.

4 participants