[Erp5-report] r42810 kazuhiko - /erp5/trunk/products/ERP5Type/Utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 31 13:58:13 CET 2011


Author: kazuhiko
Date: Mon Jan 31 13:58:12 2011
New Revision: 42810

URL: http://svn.erp5.org?rev=42810&view=rev
Log:
if urlnorm.norm fails, returns the input url as it is instead of None, that is not expected as the result of 'asNormalizedURL()'.

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=42810&r1=42809&r2=42810&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Mon Jan 31 13:58:12 2011
@@ -3318,7 +3318,7 @@ def urlnormNormaliseUrl(url, base_url=No
   except (AttributeError, UnicodeDecodeError, urlnorm.InvalidUrl):
     # This url is not valid, a better Exception will
     # be raised
-    return
+    return url
   url_split = urlparse.urlsplit(url)
   url_protocol = url_split[0]
   url_domain = url_split[1]



More information about the Erp5-report mailing list