Remove useless "as" in error catch

master
pictuga 2013-09-25 11:14:22 +02:00
parent e73cbf56c2
commit 3d6d7e70b6
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ def Fill(item, cache, feedurl='/', fast=False):
url = item.link.encode('utf-8') url = item.link.encode('utf-8')
con = urllib2.build_opener(HTMLDownloader()).open(url, timeout=TIMEOUT) con = urllib2.build_opener(HTMLDownloader()).open(url, timeout=TIMEOUT)
data = con.read() data = con.read()
except (urllib2.URLError, httplib.HTTPException, socket.timeout) as error: except (urllib2.URLError, httplib.HTTPException, socket.timeout):
log('http error') log('http error')
cache.set(item.link, 'error-http') cache.set(item.link, 'error-http')
return True return True