Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when using EAN without checksums #98

Closed
wants to merge 1 commit into from

Conversation

WhyNotHugo
Copy link
Owner

Fixes #43

@WhyNotHugo WhyNotHugo mentioned this pull request Dec 24, 2020
Base automatically changed from master to main March 9, 2021 18:56
@fra87
Copy link
Contributor

fra87 commented Aug 26, 2023

Hello
I was going to write this myself but I saw you already worked on it long time ago.
Is there any reason why this was not merged in the main branch?

self.ean = "{}{}".format(
ean, ean[self.digits] if len(ean) > self.digits else 0
)
self.ean = ean
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original ean value is lost due to the ean = ean[: self.digits] statement above.

This won't work.

@WhyNotHugo WhyNotHugo closed this Apr 8, 2024
@WhyNotHugo WhyNotHugo deleted the ean-without-checksum branch April 8, 2024 14:28
@WhyNotHugo
Copy link
Owner Author

Superceded by #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unwanted behaviour of the no_checksum option for EuropeanArticleNumber13
2 participants