Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f577d67

Browse files
authoredMay 11, 2023
Merge pull request #18 from tekktrik/main
Fix pylint issues
2 parents 16bc5ed + 04811bf commit f577d67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎adafruit_binascii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def a2b_base64(b64_data: ReadableBuffer) -> bytes:
146146
last_char_was_a_pad = False
147147
else:
148148
if leftbits != 0:
149-
raise Exception("Incorrect padding")
149+
raise ValueError("Incorrect padding")
150150

151151
return b"".join(res)
152152

‎examples/binascii_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
print("Hex Data: ", hex_data)
1414
# Verify data
1515
assert (
16-
hex_data == b"43697263756974507974686f6e20697320417765736f6d6521",
16+
hex_data == b"43697263756974507974686f6e20697320417765736f6d6521"
1717
), "hexlified data does not match expected data."
1818
# Get the binary data represented by hex_data
1919
bin_data = unhexlify(hex_data)

0 commit comments

Comments
 (0)
Please sign in to comment.