Skip to content

Wrong birthplace code error (missing date-range in the data-source). #113

@ncorona

Description

@ncorona

Python version
3.9

Package version
0.6.1

Current behavior (bug description)
Hi! I got this error when decoding a valid codicefiscale value.

Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.9/site-packages/codicefiscale/codicefiscale.py", line 440, in decode
raise ValueError(f"[codicefiscale] wrong birthplace code: '{birthplace_code}'")
ValueError: [codicefiscale] wrong birthplace code: 'G133'

I think some entry is missing in the municipalities.json file, in particular for the range from 1928-11-27 to 1948-05-07.

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