bear / python-twitter

A Python wrapper around the Twitter API.
Apache License 2.0
3.41k stars 957 forks source link

Can TwitterError be more code friendly? #664

Closed Kyu closed 4 years ago

Kyu commented 4 years ago

Could the class possibly have an error_code param so that one could just do a check for TwitterError.error_code ?

I could make a PR for such if it's accepted

Kyu commented 4 years ago

Nvm i realized i can already do TwitterError.message[n]['code']