Skip to content

Commit

Permalink
Merge pull request #164 from blag/fix-bad-merge
Browse files Browse the repository at this point in the history
Fix bad merge
  • Loading branch information
blag authored Dec 16, 2019
2 parents 70490aa + 44b6197 commit 19f378a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jose/jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@ def __init__(self, key, algorithm):

def _process_jwk(self, jwk_dict):
if not jwk_dict.get('kty') == 'oct':
raise JWKError("Incorrect key type. Expected: 'oct', Received: %s" % jwk_dict.get('kty'))

raise JWKError("Incorrect key type. Expected: 'oct', Received: %s" % jwk_dict.get('kty'))


k = jwk_dict.get('k')
k = k.encode('utf-8')
k = bytes(k)
Expand Down

0 comments on commit 19f378a

Please sign in to comment.