Skip to content

Commit

Permalink
Added unicode error fix on list. Check issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
CITGuru committed Sep 19, 2018
1 parent 634b24c commit e8f1743
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ nosetests.xml
.pydevproject
.pypirc

.vscode/
.vscode/

localtests/
8 changes: 6 additions & 2 deletions PyInquirer/prompts/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ def select_item(cli, mouse_event):
tokens.append((T.Selected if selected else T,
'- %s (%s)' % (choice[0], choice[2])))
else:
tokens.append((T.Selected if selected else T, str(choice[0]),
select_item))
try:
tokens.append((T.Selected if selected else T, str(choice[0]),
select_item))
except:
tokens.append((T.Selected if selected else T, choice[0],
select_item))
tokens.append((T, '\n'))

# prepare the select choices
Expand Down

0 comments on commit e8f1743

Please sign in to comment.