Support unicode search for creds

This commit is contained in:
Oleksii Shevchuk 2018-09-25 21:36:35 +03:00
parent c2c916383d
commit e240454a71
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def do(server, handler, config, modargs):
categories = {} categories = {}
try: try:
for item in credentials.display(search=modargs.search, isSorted=modargs.sort): for item in credentials.display(search=modargs.search.decode('utf-8'), isSorted=modargs.sort):
if item['category'] not in categories: if item['category'] not in categories:
categories[item['category']] = { categories[item['category']] = {
'credtype': item.get('credtype'), 'credtype': item.get('credtype'),