parent
a1f9fe24c8
commit
1802827d31
2
morss.py
2
morss.py
|
@ -344,7 +344,7 @@ def Fill(item, cache, feedurl='/', fast=False):
|
||||||
# download
|
# download
|
||||||
try:
|
try:
|
||||||
url = link.encode('utf-8')
|
url = link.encode('utf-8')
|
||||||
con = urllib2.build_opener(SimpleDownload()).open(url, timeout=TIMEOUT)
|
con = urllib2.build_opener(SimpleDownload(decode=True)).open(url, timeout=TIMEOUT)
|
||||||
data = con.read()
|
data = con.read()
|
||||||
except (urllib2.URLError, httplib.HTTPException, socket.timeout):
|
except (urllib2.URLError, httplib.HTTPException, socket.timeout):
|
||||||
log('http error')
|
log('http error')
|
||||||
|
|
Loading…
Reference in New Issue