[Erp5-report] r26132 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 23 15:52:53 CET 2009
Author: fabien
Date: Mon Mar 23 15:52:47 2009
New Revision: 26132
URL: http://svn.erp5.org?rev=26132&view=rev
Log:
change the except to catch only AttributeError
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=26132&r1=26131&r2=26132&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Mon Mar 23 15:52:47 2009
@@ -3160,7 +3160,7 @@
for wf in wf_list:
try:
history = wf.getInfoFor(self, 'history', None)
- except:
+ except AttributeError:
history = None
if history is not None:
if len(history):
@@ -3188,7 +3188,7 @@
for wf in wf_list:
try:
history = wf.getInfoFor(self, 'history', None)
- except:
+ except AttributeError:
history = None
if history is not None and len(history):
date = history[-1].get('time', None)
More information about the Erp5-report
mailing list