Don't cast id to a string as it's, much of the time, already a friggin' string. By casting, we end up causing 404's all over the place.
This commit is contained in:
parent
a1c4b17c6d
commit
a90595f241
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ class setup:
|
|||
apiURL = "?screen_name=%s&follow=%s" %(screen_name, follow)
|
||||
try:
|
||||
if id is not None:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/friendships/create/%s.json" % `id`, "?folow=%s" % follow))
|
||||
return simplejson.load(self.opener.open("http://twitter.com/friendships/create/%s.json" % id, "?folow=%s" % follow))
|
||||
else:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/friendships/create.json", apiURL))
|
||||
except HTTPError, e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue