Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix the detection of republican month names #85

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Conversation

Changaco
Copy link
Member

Traceback (most recent call last):
  File "legi/tar2sqlite.py", line 575, in <module>
    main()
  File "legi/tar2sqlite.py", line 557, in main
    n_anomalies = detect_anomalies(db, f)
  File "legi/anomalies.py", line 233, in detect_anomalies
    anomalies_textes_versions(db, err)
  File "legi/anomalies.py", line 162, in anomalies_textes_versions
    d1, endpos1 = parse_titre(titre, anomaly_cb('titre'), strict=True)
  File "legi/titles.py", line 121, in parse_titre
    groups['date'], groups['calendar'] = convert_date_to_iso(
  File "legi/fr_calendar.py", line 58, in convert_date_to_iso
    mois = MOIS_GREG_MAP[strip_down(mois)]
KeyError: 'pluviose'

@Changaco Changaco force-pushed the fix-date-conversion branch from a5bdbbd to ab9489d Compare November 24, 2021 15:19
@Changaco Changaco merged commit 3adf4de into master Nov 24, 2021
@Changaco Changaco deleted the fix-date-conversion branch November 24, 2021 15:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant