Skip to content

num2words(1802, lang='am') --> cannot unpack non-iterable NoneType object #639

@gregory-marton

Description

@gregory-marton

num2words(1802, lang='am')

[/usr/local/lib/python3.11/dist-packages/num2words/__init__.py](https://localhost:8080/#) in num2words(number, ordinal, lang, to, **kwargs)
    109         raise NotImplementedError()
    110 
--> 111     return getattr(converter, 'to_{}'.format(to))(number, **kwargs)

[/usr/local/lib/python3.11/dist-packages/num2words/lang_AM.py](https://localhost:8080/#) in to_cardinal(self, value)
     85         else:
     86             val = self.splitnum(value)
---> 87             words, num = self.clean(val)
     88             return self.title(out + words)
     89 

TypeError: cannot unpack non-iterable NoneType object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions