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

When specifying hundreds, the logic for the Armenian language breaks #599

Open
xdownedx opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@xdownedx
Copy link

xdownedx commented Dec 4, 2024

Expected Behaviour

return something in the supported language: "am"

Actual Behaviour

Traceback (most recent call last): File "/Users/xdownedx/docxGENERATE/docxGen/app.py", line 6, in <module> print(num2words(amount, lang='am')) File "/Users/xdownedx/docxGENERATE/docxGen/.venv/lib/python3.10/site-packages/num2words/__init__.py", line 104, in num2words return getattr(converter, 'to_{}'.format(to))(number, **kwargs) File "/Users/xdownedx/docxGENERATE/docxGen/.venv/lib/python3.10/site-packages/num2words/lang_AM.py", line 87, in to_cardinal words, num = self.clean(val) TypeError: cannot unpack non-iterable NoneType object

Steps to reproduce

from num2words import num2words

amount = 1210

print(num2words(amount, lang='am'))

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

No branches or pull requests

1 participant