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
merged 1 commit into from
Dec 28, 2015
Merged

initialize Api.__auth fixes #119 #267

merged 1 commit into from
Dec 28, 2015

Conversation

rbpasker
Copy link
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
Contributor Author

fixes Issue #119

@bear
Copy link
Owner

bear commented Dec 28, 2015

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants