From 72b3af33a4d941f89ceff8c44c4f9af36bdac2db Mon Sep 17 00:00:00 2001 From: spline Date: Sun, 23 Dec 2012 16:36:34 -0500 Subject: [PATCH] Temp fix --- plugin.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugin.py b/plugin.py index ec2d528..f3b5fa8 100644 --- a/plugin.py +++ b/plugin.py @@ -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: