You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved `super().__init__` before calling `_calculate_checksum()` to check if the string contains any letters to prevent value errors that can happen when calculating checksum. I tested the new version with the input `0132354187` and the produced barcode before and after the commit is the same as `9780132352`.
canklot
added a commit
to canklot/python-barcode
that referenced
this issue
Sep 21, 2022
Moved `super().__init__` before calling `_calculate_checksum()` to check if the string contains any letters to prevent value errors that can happen when calculating checksum. I tested the new version with the input `0132354187` and the produced barcode before and after the commit is the same as `9780132352`.
When calling ISBN10 with a text that contains any letters, the function crashes at _calculate_checksum.
The text was updated successfully, but these errors were encountered: