We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16bc5ed commit 04811bfCopy full SHA for 04811bf
adafruit_binascii.py
@@ -146,7 +146,7 @@ def a2b_base64(b64_data: ReadableBuffer) -> bytes:
146
last_char_was_a_pad = False
147
else:
148
if leftbits != 0:
149
- raise Exception("Incorrect padding")
+ raise ValueError("Incorrect padding")
150
151
return b"".join(res)
152
examples/binascii_simpletest.py
@@ -13,7 +13,7 @@
13
print("Hex Data: ", hex_data)
14
# Verify data
15
assert (
16
- hex_data == b"43697263756974507974686f6e20697320417765736f6d6521",
+ hex_data == b"43697263756974507974686f6e20697320417765736f6d6521"
17
), "hexlified data does not match expected data."
18
# Get the binary data represented by hex_data
19
bin_data = unhexlify(hex_data)
0 commit comments