Commit eded0d29 authored by Nicolas Delaby's avatar Nicolas Delaby

From version 1.0.1 of urlnorm, an explicit exception is raised

if given url is not valid.
keep AttributeError catching for legacy


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46a86d1e
......@@ -3256,7 +3256,7 @@ def urlnormNormaliseUrl(url, base_url=None):
"""
try:
url = urlnorm.norm(url)
except AttributeError:
except (AttributeError, urlnorm.InvalidUrl):
# This url is not valid, a better Exception will
# be raised
return
......
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