summaryrefslogtreecommitdiff
path: root/archaeological_operations/utils.py
diff options
context:
space:
mode:
authorValérie-Emma Leroux <emma@iggdrasil.net>2017-04-07 11:40:31 +0200
committerValérie-Emma Leroux <emma@iggdrasil.net>2017-04-07 11:40:31 +0200
commit7f22d3c20cc24debfe123425efa63ec5293e4b4c (patch)
treef773b80964981c231c892ee5255b94285bc5620a /archaeological_operations/utils.py
parent9127307734c85b816ac7dbb539b565ffb106d60f (diff)
parentda4af2ab5d105f6d2ce442b517e532b7570616e3 (diff)
downloadIshtar-7f22d3c20cc24debfe123425efa63ec5293e4b4c.tar.bz2
Ishtar-7f22d3c20cc24debfe123425efa63ec5293e4b4c.zip
Merge branch 'master' of git.iggdrasil.net:/srv/git/ishtar
Conflicts: archaeological_operations/templates/ishtar/sheet_operation.html
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