support unicode in args
This commit is contained in:
parent
240d0368f5
commit
bd13ffeb50
|
@ -213,7 +213,7 @@ def main():
|
|||
projects = refine.Refine(refine.RefineServer()).list_projects().items()
|
||||
idlist = []
|
||||
for project_id, project_info in projects:
|
||||
if args[0] == project_info['name']:
|
||||
if args[0].decode('UTF-8') == project_info['name']:
|
||||
idlist.append(str(project_id))
|
||||
if len(idlist) > 1:
|
||||
print('Error: Found %s projects with name %s.\n'
|
||||
|
|
Loading…
Reference in New Issue