catch httplib errors in fetch_ryf_blog (bug 591461)
This commit is contained in:
Родитель
6eb1a2f2ba
Коммит
03bad73c29
|
@ -1,3 +1,4 @@
|
||||||
|
import httplib
|
||||||
import time
|
import time
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ def fetch_ryf_blog():
|
||||||
url = "http://rockyourfirefox.com/feed/"
|
url = "http://rockyourfirefox.com/feed/"
|
||||||
try:
|
try:
|
||||||
p = pq(url=url)
|
p = pq(url=url)
|
||||||
except urllib2.URLError, e:
|
except (urllib2.URLError, httplib.HTTPException), e:
|
||||||
log.error("Couldn't open (%s): %s" % (url, e))
|
log.error("Couldn't open (%s): %s" % (url, e))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче