ChenjieXu / pyzxing

Python wrapper of ZXing Java library, making qrcode decoding super easy!
MIT License
158 stars 24 forks source link

Error when does not detect any barcode #14

Closed Cristianasp closed 3 years ago

Cristianasp commented 3 years ago

Hello ! Thank you for your work.

I am testing your wrapper with some images and for a image with no barcode I got this error:

Traceback (most recent call last): File "pyzxing/scanner.py", line 27, in main(args) File "pyzxing/scanner.py", line 16, in main results_string = [result['parsed'] for result in results] File "pyzxing/scanner.py", line 16, in results_string = [result['parsed'] for result in results] KeyError: 'parsed'

ChenjieXu commented 3 years ago

Thank you!I will fix it