diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py
index 2a3dfe236069401fc5391abaa6c9a7a88b19b4f9..116dbbd241ba1b8df37ce7abb375cd7544d6db46 100644
--- a/product/ERP5Type/Utils.py
+++ b/product/ERP5Type/Utils.py
@@ -3255,11 +3255,11 @@ def legacyNormalizeUrl(url, base_url=None):
 def urlnormNormaliseUrl(url, base_url=None):
   """The normalisation up is delegated to urlnorm library.
   """
-  InvalidURLException = getattr(urlnorm, 'InvalidUrl', AttributeError)
   try:
     url = urlnorm.norm(url)
-  except InvalidURLException:
-    # This url is not valid
+  except (AttributeError, urlnorm.InvalidUrl):
+    # This url is not valid, a better Exception will
+    # be raised
     return
   url_split = urlparse.urlsplit(url)
   url_protocol = url_split[0]