8000 Unable to encode and decode fiscal codes when year of birth (excluding century) < 10 (eg. 2004) · Issue #79 · fabiocaccamo/python-codicefiscale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unable to encode and decode fiscal codes when year of birth (excluding century) < 10 (eg. 2004) #79
Closed
@deltaredentertainment

Description

@deltaredentertainment

Python version
3.9

Current behavior (bug description)
When calling both the .encode and .decode function with any birthplace it raises a ValueError:
Traceback (most recent call last):
File "/Users/davideramondetti/..../handler.py", line 19, in
cod1 = codicefiscale.decode(
File "/Users/davideramondetti/.../venv/lib/python3.9/site-packages/codicefiscale/codicefiscale.py", line 485, in decode
raise ValueError(f"[codicefiscale] wrong birthplace code: {birthplace_code!r}")
ValueError: [codicefiscale] wrong birthplace code: 'L219'

Expected behavior
It is expected for the .decode to return the extracted data, and for the Encode to output the fiscal code.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0