Commit b9172f82 authored by Yusei Tahara's avatar Yusei Tahara

Includes wrong values to error message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37321 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a0ba864
......@@ -634,8 +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.'
raise TypeError, ('Category must be of string, tuple of string '
'or list of string type. %s %s' %
(base_category_list, category_list))
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