Doesn't crash...

This commit is contained in:
Thomas Farstrike
2025-05-12 21:01:16 +02:00
parent 11af02e80f
commit 90856304ef
4 changed files with 37 additions and 6 deletions
+3
View File
@@ -15,6 +15,9 @@ try:
raise ValueError("File size does not match expected 240x240 grayscale image")
# Decode QR code using qrdecode module
print("decoding...")
print(f"buffer length: {len(buffer)}")
for i in range(15):
print(buffer[i])
result = qrdecode.qrdecode(buffer, width, height)
print(f"result: {result}")
# Remove BOM (\ufeff) from the start of the decoded string, if present