diff --git a/bin/modules/QrCodeReader.py b/bin/modules/QrCodeReader.py index a83a7f92..00b50132 100755 --- a/bin/modules/QrCodeReader.py +++ b/bin/modules/QrCodeReader.py @@ -60,9 +60,10 @@ class QrCodeReader(AbstractModule): try: decodeds = decode(image) for decoded in decodeds: - qr_codes = True - if decoded.data: - contents.append(decoded.data.decode()) + if decoded.type == 'QRCODE': + qr_codes = True + if decoded.data: + contents.append(decoded.data.decode()) except ValueError as e: self.logger.error(f'{e}: {self.obj.get_global_id()}')