diff --git a/Lib/base64.py b/Lib/base64.py index f923244104e..9c15752fe31 100755 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -222,7 +222,7 @@ def b32decode(s, casefold=False, map01=None): for c in quanta: acc = (acc << 5) + b32rev[c] except KeyError: - raise binascii.Error('Non-base32 digit found') + raise binascii.Error('Non-base32 digit found') from None decoded += acc.to_bytes(5, 'big') # Process the last, partial quanta if padchars: