[Erp5-report] r23396 - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 4 11:59:16 CEST 2008


Author: nicolas
Date: Thu Sep  4 11:59:13 2008
New Revision: 23396

URL: http://svn.erp5.org?rev=23396&view=rev
Log:
Handle another exception

Modified:
    erp5/trunk/products/ERP5/Document/Document.py

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=23396&r1=23395&r2=23396&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Thu Sep  4 11:59:13 2008
@@ -1283,7 +1283,7 @@
       try:
         stripped_html = unicode(str(stripped_html), 
                                 charset_list[0]).encode('utf-8')
-      except UnicodeDecodeError:
+      except (UnicodeDecodeError, LookupError):
         return str(stripped_html)
     return stripped_html
 




More information about the Erp5-report mailing list