From 3d6d7e70b6908cc5ae42fbf5118b0c15d2ee8b99 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Sep 2013 11:14:22 +0200 Subject: [PATCH] Remove useless "as" in error catch --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 1ae136b..e91f253 100644 --- a/morss.py +++ b/morss.py @@ -341,7 +341,7 @@ def Fill(item, cache, feedurl='/', fast=False): url = item.link.encode('utf-8') con = urllib2.build_opener(HTMLDownloader()).open(url, timeout=TIMEOUT) data = con.read() - except (urllib2.URLError, httplib.HTTPException, socket.timeout) as error: + except (urllib2.URLError, httplib.HTTPException, socket.timeout): log('http error') cache.set(item.link, 'error-http') return True