Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jose/jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def construct(key_data, algorithm=None):
algorithm = key_data.get('alg', None)

if not algorithm:
raise JWKError('Unable to find a algorithm for key: %s' % key_data)
raise JWKError('Unable to find an algorithm for key: %s' % key_data)

key_class = get_key(algorithm)
if not key_class:
raise JWKError('Unable to find a algorithm for key: %s' % key_data)
raise JWKError('Unable to find an algorithm for key: %s' % key_data)
return key_class(key_data, algorithm)


Expand Down