This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Commit e68b6ae
committed
initialize Api.__auth fixes #119
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.'}`.1 parent 2674a54 commit e68b6ae
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments