support unicode in args

This commit is contained in:
Felix Lohmeier 2019-08-21 20:18:27 +02:00
parent 240d0368f5
commit bd13ffeb50
1 changed files with 1 additions and 1 deletions

View File

@ -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'