Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

initialize Api.__auth fixes #119 - #267

Merged
bear merged 1 commit into
bear:masterfrom
rbpasker:master
Dec 28, 2015
Merged

initialize Api.__auth fixes #119#267
bear merged 1 commit into
bear:masterfrom
rbpasker:master

Conversation

@rbpasker

Copy link
Copy Markdown
Contributor

This eliminates AttributeError: 'Api' object has no attribute '_Api__auth' errors by initializing Api.__auth to None. Now, setting the authentication parameters incorrectly results in the proper error message: TwitterError: {'message': 'Api instance must first be given user credentials.'}.

Review on Reviewable

This eliminates `AttributeError: 'Api' object has no attribute '_Api__auth'` errors by initializing `Api.__auth` to None. Now, setting the authentication parameters incorrectly results in the proper error message: `TwitterError: {'message': 'Api instance must first be given user credentials.'}`.
@rbpasker

Copy link
Copy Markdown
Contributor Author

fixes Issue #119

@bear

bear commented Dec 28, 2015

Copy link
Copy Markdown
Owner

thanks!

bear added a commit that referenced this pull request Dec 28, 2015
initialize Api.__auth fixes #119
@bear
bear merged commit aa8aacc into bear:master Dec 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants