Skip to content

Commit

Permalink
Document InvalidJWSOperation exception for JWSCore constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeerw authored and simo5 committed Nov 30, 2021
1 parent dd312ca commit 3ba7408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwcrypto/jws.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def __init__(self, alg, key, header, payload, algs=None):
:raises ValueError: if the key is not a :class:`JWK` object
:raises InvalidJWAAlgorithm: if the algorithm is not valid, is
unknown or otherwise not yet implemented.
:raises InvalidJWSOperation: if the algorithm is not allowed.
"""
self.alg = alg
self.engine = self._jwa(alg, algs)
Expand Down

0 comments on commit 3ba7408

Please sign in to comment.