NewFromJsonDict AttributeError
Closed this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Call GetUserTimeLine
What is the expected output? What do you see instead?
I have a 'twitter panel' on a site that uses python-twitter to get tweets. Most
of the time it works fine but it's crashing every so often with the error shown
below.
File "/------/venv/lib/python2.7/site-packages/twitter.py", line 2682, in GetUserTimeline
return [Status.NewFromJsonDict(x) for x in data]
File "/------/venv/lib/python2.7/site-packages/twitter.py", line 620, in NewFromJsonDict
return Status(created_at=data.get('created_at', None),
AttributeError: 'unicode' object has no attribute 'get'
What version of the product are you using? On what operating system?
0.8.2
Please provide any additional information below.
I cant reproduce this error by calling GetUserTimeline in a python shell. Seems
like it only happens every so often (maybe depending on what the twitter api
returns?)
Original issue reported on code.google.com by Mr.Matt....@gmail.com on 16 Nov 2012 at 10:07