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.
2 parents d496373 + c6c9e8a commit 8ee5ae0Copy full SHA for 8ee5ae0
adafruit_miniqr.py
@@ -450,7 +450,7 @@ class QRPolynomial:
450
def __init__(self, num, shift):
451
"""Create a QR polynomial"""
452
if not num:
453
- raise Exception(num.length + "/" + shift)
+ raise ValueError(num.length + "/" + shift)
454
offset = 0
455
while offset < len(num) and num[offset] == 0:
456
offset += 1
0 commit comments