[Erp5-report] r38339 jerome - /erp5/trunk/products/CMFCategory/CategoryTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 14 12:14:16 CEST 2010


Author: jerome
Date: Tue Sep 14 12:14:10 2010
New Revision: 38339

URL: http://svn.erp5.org?rev=38339&view=rev
Log:
Amendment to r37321, instead of displaying the wrong values in the exception text, use __traceback_info__.
This is mostly to make the test pass again

Modified:
    erp5/trunk/products/CMFCategory/CategoryTool.py

Modified: erp5/trunk/products/CMFCategory/CategoryTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFCategory/CategoryTool.py?rev=38339&r1=38338&r2=38339&view=diff
==============================================================================
--- erp5/trunk/products/CMFCategory/CategoryTool.py [utf8] (original)
+++ erp5/trunk/products/CMFCategory/CategoryTool.py [utf8] Tue Sep 14 12:14:10 2010
@@ -634,9 +634,9 @@ class CategoryTool( UniqueObject, Folder
       elif isinstance(category_list, (list, tuple)):
         pass
       else:
-        raise TypeError, ('Category must be of string, tuple of string '
-                          'or list of string type. %s %s' %
-                          (base_category_list, category_list))
+        __traceback_info__ = (base_category_list, category_list)
+        raise TypeError('Category must be of string, tuple of string '
+                        'or list of string type.')
 
       if isinstance(base_category_list, str):
         base_category_list = (base_category_list, )




More information about the Erp5-report mailing list