Skip to content
Snippets Groups Projects
Verified Commit 03bd8cb0 authored by Owen Graham's avatar Owen Graham
Browse files

Disallow year 0

parent e3c95f9b
Branches
No related tags found
No related merge requests found
......@@ -31,6 +31,6 @@ def year_type(s):
"""Type converter for valid years."""
if s.isdigit():
val = int(s)
if val in range(10000):
if val in range(1, 10000):
return val
raise ValueError(f'bad year arg: {s!r}')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment