summaryrefslogtreecommitdiff
path: root/archaeological_operations/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-07 12:22:27 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-07 12:22:27 +0200
commit93364489ab4e6daf16f924b2d8212f7fcdc5e477 (patch)
treee0686c289c399330f414b50ff8ef58f642833db2 /archaeological_operations/utils.py
parentc788bef47de6bca5dda5dd1fa67dd6a2ac02e9b9 (diff)
parenta8271676a0598594762cc53e4f577337eb275313 (diff)
downloadIshtar-93364489ab4e6daf16f924b2d8212f7fcdc5e477.tar.bz2
Ishtar-93364489ab4e6daf16f924b2d8212f7fcdc5e477.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_operations/utils.py')
-rw-r--r--archaeological_operations/utils.py4
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