Commit c049ae1c authored by Jérome Perrin's avatar Jérome Perrin

Amendment to r37321, instead of displaying the wrong values in the exception...

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38339 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c43f55f
......@@ -634,9 +634,9 @@ class CategoryTool( UniqueObject, Folder, Base ):
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, )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment