v14 QR at x3 was seen as barcode, fixed

This commit is contained in:
Peter D. Gray 2024-02-26 11:13:12 -05:00
parent d41f254bea
commit 259b9b063e
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -602,8 +602,8 @@ def cap_screen_qr(cap_image):
scanner = zbar.Scanner()
for sym, value, *_ in scanner.scan(np):
assert sym == 'QR-Code', 'unexpected symbology: ' + sym
return value # bytes, could be binary
if sym == 'QR-Code':
return value # bytes, could be binary
# for debug, check debug/last-qr.png
raise RuntimeError('qr code not found')