Skip to content

Commit d1dbdcd

Browse files
author
Roland Hedberg
committed
Catch-all clause.
1 parent b0f164a commit d1dbdcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jwkest/jws.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ def sign_compact(self, keys=None):
357357
xargs = {"kid": key.kid}
358358
elif _alg:
359359
raise NoSuitableSigningKeys(_alg)
360+
else:
361+
raise NoSuitableSigningKeys("None")
360362

361363
enc_head = self._encoded_header(xargs)
362364
enc_payload = self._encoded_payload()

0 commit comments

Comments
 (0)