Updating version to 0.8.0.1, as showStatus() had a bug with authentication and needed to be pushed out
This commit is contained in:
parent
c83a033765
commit
91e03fe7ef
9 changed files with 58 additions and 4 deletions
|
|
@ -151,7 +151,10 @@ class setup:
|
|||
|
||||
def showStatus(self, id):
|
||||
try:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/statuses/show/%s.json" % id))
|
||||
if self.authenticated is True:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/statuses/show/%s.json" % id))
|
||||
else:
|
||||
return simplejson.load(urllib2.urlopen("http://twitter.com/statuses/show/%s.json" % id))
|
||||
except HTTPError, e:
|
||||
raise TangoError("Failed with a %s error code. Does this user hide/protect their updates? You'll need to authenticate and be friends to get their timeline."
|
||||
% `e.code`, e.code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue