Commit 8ae07061 authored by Julien Muchembled's avatar Julien Muchembled

Fix UnicodeEncodeError in TaskDistributionTool

parent ec07d86c
......@@ -173,7 +173,8 @@ class TaskDistributionTool(BaseTool):
test_result._setIntIndex(int_index)
if project_title is not None:
project_list = portal.portal_catalog(portal_type='Project',
title=SimpleQuery(comparison_operator='=', title=project_title))
title=SimpleQuery(comparison_operator='=',
title=project_title.encode('utf-8')))
if len(project_list) != 1:
raise ValueError('found this list of project : %r for title %r' % \
([x.path for x in project_list], project_title))
......
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