diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-06 16:29:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-06 16:29:32 +0200 |
commit | 617850ba6fb852e3465fd3a437437be333cfbf4e (patch) | |
tree | 94ef700e01126eb623973e51a22c334615a940e8 /archaeological_operations/utils.py | |
parent | a8a8cf7079a25fe8ee909106ba30e0daa7395c5e (diff) | |
download | Ishtar-617850ba6fb852e3465fd3a437437be333cfbf4e.tar.bz2 Ishtar-617850ba6fb852e3465fd3a437437be333cfbf4e.zip |
Allow old operations. Seventeenth century here we are! (refs #3588)
Diffstat (limited to 'archaeological_operations/utils.py')
-rw-r--r-- | archaeological_operations/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/utils.py b/archaeological_operations/utils.py index a84ff44ae..40ca71c05 100644 --- a/archaeological_operations/utils.py +++ b/archaeological_operations/utils.py @@ -254,9 +254,9 @@ def parse_year(value): value = parse_string(value) try: yr = int(value) - except: + except ValueError: return None - if yr < 1900 or yr > 2100: + if yr < 1600 or yr > 2100: return None return yr |