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

JoursFeries.vendredi_saint(1885, "Alsace-Moselle") crashe #11

Open
zedalaye opened this issue Jan 25, 2023 · 0 comments
Open

JoursFeries.vendredi_saint(1885, "Alsace-Moselle") crashe #11

zedalaye opened this issue Jan 25, 2023 · 0 comments

Comments

@zedalaye
Copy link

Comme JoursFeries.paques(1885) retourne None, JoursFeries.vendredi_saint(1885, "Alsace-Moselle") ne peut pas calculer None - timedelta(days=2)

if zone == JoursFeries.check_zone("Alsace-Moselle"):
return JoursFeries.paques(year) - timedelta(days=2)

Demander la liste des jours fériés de n'importe quelle année avant 1886 pour Alsace-Moselle devrait aussi crasher.

Correction proposée : vérifier la validité de l'année dans cette fonction, ou retirer le contrôle de validité de la date dans la fonction paques(year)

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