Skip to content

Commit

Permalink
Update terms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
flipmcf authored Nov 4, 2020
1 parent a1fec9a commit e2dcab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/app/vocabularies/terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def safe_simpleterm_from_value(value):
"""
if isinstance(value, six.text_type):
try:
token = value.decode('ascii')
token = value.encode('ascii')
except UnicodeDecodeError:
token = b2a_base64(safe_encode(value)).strip()
else:
Expand Down

0 comments on commit e2dcab9

Please sign in to comment.