Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion adafruit_binascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def a2b_base64(b64_data: ReadableBuffer) -> bytes:
last_char_was_a_pad = False
else:
if leftbits != 0:
raise Exception("Incorrect padding")
raise ValueError("Incorrect padding")

return b"".join(res)

Expand Down
2 changes: 1 addition & 1 deletion examples/binascii_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
print("Hex Data: ", hex_data)
# Verify data
assert (
hex_data == b"43697263756974507974686f6e20697320417765736f6d6521",
hex_data == b"43697263756974507974686f6e20697320417765736f6d6521"
), "hexlified data does not match expected data."
# Get the binary data represented by hex_data
bin_data = unhexlify(hex_data)
Expand Down