summaryrefslogtreecommitdiff
path: root/archaeological_operations/utils.py
diff options
context:
space:
mode:
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 40ca71c05..3a5057cd5 100644
--- a/archaeological_operations/utils.py
+++ b/archaeological_operations/utils.py
@@ -256,7 +256,7 @@ def parse_year(value):
yr = int(value)
except ValueError:
return None
- if yr < 1600 or yr > 2100:
+ if yr < 1000 or yr > 2100:
return None
return yr
@@ -268,7 +268,7 @@ def parse_trunc_patriarche(value):
value = value.replace(' ', '')
try:
int(value)
- except:
+ except ValueError:
return
return '18' + unicode(value)