Removing redundant code block
This commit is contained in:
parent
3f5fceb38b
commit
844c1ae235
1 changed files with 1 additions and 4 deletions
|
|
@ -459,9 +459,6 @@ class setup:
|
||||||
apiURL = "http://api.twitter.com/%d/users/show.json?screen_name=%s" % (version, screen_name)
|
apiURL = "http://api.twitter.com/%d/users/show.json?screen_name=%s" % (version, screen_name)
|
||||||
if apiURL != "":
|
if apiURL != "":
|
||||||
try:
|
try:
|
||||||
if self.authenticated is True:
|
|
||||||
return simplejson.load(self.opener.open(apiURL))
|
|
||||||
else:
|
|
||||||
return simplejson.load(self.opener.open(apiURL))
|
return simplejson.load(self.opener.open(apiURL))
|
||||||
except HTTPError, e:
|
except HTTPError, e:
|
||||||
raise TwythonError("showUser() failed with a %s error code." % `e.code`, e.code)
|
raise TwythonError("showUser() failed with a %s error code." % `e.code`, e.code)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue