Commit 08620d03 authored by Jérome Perrin's avatar Jérome Perrin

raise original exception


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7f8f5077
......@@ -658,13 +658,13 @@ class ContributionTool(BaseTool):
# IDEA : ajouter l'url en question dans une list "bad_url_list" puis lors du crawling au lieu que de boucler sur
# la liste des url extraites de la page web on fait un test supplementaire qui verifie que l'url n'est pas
# dans la liste bad_url_lis
raise urllib2.HTTPError
raise
content.activate(at_date=DateTime() + 1).updateContentFromURL(repeat=repeat - 1)
return
except urllib2.URLError, error:
if repeat == 0:
# XXX - Call the extendBadURLList method,--NOT Implemented--
raise urllib2.URLError
raise
content.activate(at_date=DateTime() + 1).updateContentFromURL(repeat=repeat - 1)
return
......@@ -720,7 +720,7 @@ class ContributionTool(BaseTool):
# here we must call the extendBadURLList method,--NOT Implemented--
# which had to add this url to bad URL list, so next time we avoid
# crawling bad URL
raise urllib2.HTTPError
raise
# Catch any HTTP error
self.activate(at_date=DateTime() + 1).newContentFromURL(
container_path=container_path, id=id,
......@@ -728,7 +728,7 @@ class ContributionTool(BaseTool):
except urllib2.URLError, error:
if repeat == 0:
# XXX - Call the extendBadURLList method, --NOT Implemented--
raise urllib2.URLError
raise
print error.reason
#if getattr(error.reason,'args',None):
#if error.reason.args[0] == socket.EAI_AGAIN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment