Skip to content

Commit 5003d7d

Browse files
committed
Fixed bandit complain
1 parent 56ff6b5 commit 5003d7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/idpyoidc/client/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ def parse_response(
592592

593593
resp = None
594594
if sformat == "jose": # can be jwe, jws or json
595+
# the checks for JWS and JWE will be replaced with functions from cryptojwt
595596
try:
596597
if jws_factory(info):
597598
info = self._do_jwt(info)
@@ -600,7 +601,7 @@ def parse_response(
600601
if jwe_factory(info):
601602
info = self._do_jwt(info)
602603
except:
603-
pass
604+
LOGGER.debug('jwe detected')
604605
if info and isinstance(info, str):
605606
info = json.loads(info)
606607
sformat = "dict"

0 commit comments

Comments
 (0)