Skip to content

Commit

Permalink
fix: Prevent data from being ignored, such as Data#5 and Data#8.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkamiya22 committed Jul 10, 2024
1 parent 9dbbc2c commit f9a30ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rmqrcode/rmqrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def _make_final_codewords(self, blocks):
try:
data_codeword = block.get_data_at(i)
except IndexError:
break
continue
else:
final_codewords.append(data_codeword)
self._logger.debug(f"Put QR data codeword {i} : {data_codeword}")
Expand All @@ -403,7 +403,7 @@ def _make_final_codewords(self, blocks):
try:
ecc_codeword = block.get_ecc_at(i)
except IndexError:
break
continue
else:
final_codewords.append(ecc_codeword)
self._logger.debug(f"Put RS data codewords {i} : {ecc_codeword}")
Expand Down

0 comments on commit f9a30ef

Please sign in to comment.