Closed Fitblip closed 2 years ago
I created another issue to handle this a bit more thorough: https://github.com/bear/python-twitter/issues/639
Hi @bear, I think this merge might have produced syntactically incorrect python.
Looks like it was previously fixed in https://github.com/bear/python-twitter/commit/eed985f1cb5cd3dadfbd42732bb02c319a4f4653 but with this change/diff it is now broken again 😬
Right now whenever the twitter API returns an un-parsable response that isn't explicitly known/handled, the TwitterException sets the message parameter to a
set
type, not adict
type or astr
type (which is used in some cases elsewhere).This is causing errors for me as I'm inspecting this exception for graceful error handling, and received a
set
much to my surprise! Looks to me like a copy/paste bug.I'd like to have it be a
dict
, but if you think astr
is more appropriate that works too!Thanks for the great library :)
This change is