Fixing a bug in the 3k build per request from bsavas
This commit is contained in:
parent
d630e02b6e
commit
ff46a85e13
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class setup:
|
|||
"""
|
||||
try:
|
||||
return urllib.request.urlopen(shortener + "?" + urllib.urlencode({query: self.unicode2utf8(url_to_shorten)})).read()
|
||||
except HTTPError as e:
|
||||
except HTTPError, e:
|
||||
raise TwythonError("shortenURL() failed with a %s error code." % repr(e.code))
|
||||
|
||||
def constructApiURL(self, base_url, params):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue