Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 5cb40e9

Browse files
committed
Fix exception cause in common.py
1 parent e6a8339 commit 5cb40e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rsa/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def bit_size(num: int) -> int:
4949

5050
try:
5151
return num.bit_length()
52-
except AttributeError as e:
53-
raise TypeError('bit_size(num) only supports integers, not %r' % type(num)) from e
52+
except AttributeError as ex:
53+
raise TypeError('bit_size(num) only supports integers, not %r' % type(num)) from ex
5454

5555

5656
def byte_size(number: int) -> int:

0 commit comments

Comments
 (0)