Update twython.py (Attribute error, unicode object detected) #165
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
if unicode object is detected (instead of json) , convert it to json using simplejson/json.
Can you give an example when a unicode object would be detected?
while fetching the 'http://api.twitter.com/1.1/statuses/user_timeline.json'
I ve attached a screenshot with the response (the content variable)
trying to decode it with simplejson after detecting unicode, solved it
I don't understand how you received unicode?
I just did:
and it didn't throw an Exception?
On line 172 in twython.py you're trying to ?
I'm actually not sure why we're decoding that, let me ping @ryanmcgrath
okies!!
Gotcha gotcha! I replicated the error! Think you can update the version in
setup.pyand intwython.pyboth to 2.7.2 and I'll merge this in push to PyPi! :D@michaelhelmick think I should I add my name to contributors list?
You could do that too! I was going to do that in the 2.7.1 release but got lazy and didn't feel like looking up your info and links, sorry! 🍰 haha
@michaelhelmick updated the version in twython.py and also the setup.py! I guess you can push this pypi now!
Twython2.7.2 is now available via PyPi!