Skip to content

Commit

Permalink
Make linter happier about dummy exception
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <simo@redhat.com>
  • Loading branch information
simo5 committed Mar 15, 2023
1 parent 4f6cf30 commit 0c31ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwcrypto/jwa.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def unwrap(self, key, bitsize, ek, headers):
cek = super(_Rsa15, self).unwrap(key, bitsize, ek, headers)
# always raise so we always run through the exception handling
# code in all cases
raise Exception('Dummy')
raise ValueError('Dummy')
except Exception: # pylint: disable=broad-except
return cek

Expand Down

0 comments on commit 0c31ee0

Please sign in to comment.