Skip to content
Permalink
Browse files

Merge pull request #2087 from brunocascio/hotfix_unicode

Use str() instead of deprecated unicode()
  • Loading branch information
plettich committed Mar 23, 2020
2 parents d9ddbc6 + 49926e5 commit 67e0f7935551d249cbfe0928f6d79e017e014717
Showing with 1 addition and 1 deletion.
  1. +1 −1 privacyidea/lib/resolver.py
@@ -95,7 +95,7 @@ def save_resolver(params):
# check the type
resolvertypes = get_resolver_types()
if resolvertype not in resolvertypes:
raise Exception("resolver type : {0!s} not in {1!s}".format(resolvertype, unicode(resolvertypes)))
raise Exception("resolver type : {0!s} not in {1!s}".format(resolvertype, str(resolvertypes)))

# check the name
resolvers = get_resolver_list(filter_resolver_name=resolvername)

0 comments on commit 67e0f79

Please sign in to comment.
You can’t perform that action at this time.