Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 3cfd08c

Browse files
committed
Must be str not bytes.
1 parent f1a00b2 commit 3cfd08c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/oidcmsg/message.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from urllib.parse import parse_qs
77
from urllib.parse import urlencode
88

9-
from cryptojwt import as_bytes
109
from cryptojwt import as_unicode
1110
from cryptojwt import jwe
1211
from cryptojwt import jws
@@ -463,7 +462,7 @@ def from_json(self, txt, **kwargs):
463462
try:
464463
_dict = json.loads(txt)
465464
except TypeError:
466-
_dict = json.loads(as_bytes(txt))
465+
_dict = json.loads(as_unicode(txt))
467466

468467
return self.from_dict(_dict)
469468

0 commit comments

Comments
 (0)