[Erp5-report] r42028 nicolas - /erp5/trunk/products/ERP5Type/Utils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 5 14:36:15 CET 2011
Author: nicolas
Date: Wed Jan 5 14:36:15 2011
New Revision: 42028
URL: http://svn.erp5.org?rev=42028&view=rev
Log:
Catch only ImportError
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=42028&r1=42027&r2=42028&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Wed Jan 5 14:36:15 2011
@@ -3282,7 +3282,7 @@ def guessEncodingFromText(data, content_
chardet = None
try:
import magic
- except:
+ except ImportError:
magic = None
if chardet is not None and content_type == 'text/html':
# chardet works fine on html document
More information about the Erp5-report
mailing list