This commit is contained in:
spline 2012-12-23 16:36:34 -05:00
parent a718e30144
commit 72b3af33a4
1 changed files with 0 additions and 7 deletions

View File

@ -283,13 +283,6 @@ class Tweety(callbacks.Plugin):
req = urllib2.Request(req_url, headers={'User-Agent': 'Python-longurl/1.0'})
lookup = json.loads(urllib2.urlopen(req).read())
return lookup.get('long-url', None)
except urllib2.HTTPError as e:
self.log.debug('http error {0} when trying to shorten {1}'.format(e, qurl)
return None
except urllib2.URLError as e:
self.log.debug('http error {0} when trying to shorten {1}'.format(e, qurl)
return None
#def re_encode(input_string, decoder = 'utf-8', encoder = 'utf=8'):
#try: