No subject


Mon Dec 20 16:25:41 CET 2010


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

Modified:
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=41613&r1=41612&r2=41613&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Tue Dec 21 16:30:41 2010
@@ -3256,7 +3256,7 @@ def urlnormNormaliseUrl(url, base_url=No
   """
   try:
     url = urlnorm.norm(url)
-  except AttributeError:
+  except (AttributeError, urlnorm.InvalidUrl):
     # This url is not valid, a better Exception will
     # be raised
     return



More information about the Erp5-report mailing list