diff options
| 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 |
| commit | 93364489ab4e6daf16f924b2d8212f7fcdc5e477 (patch) | |
| tree | e0686c289c399330f414b50ff8ef58f642833db2 /archaeological_operations/utils.py | |
| parent | c788bef47de6bca5dda5dd1fa67dd6a2ac02e9b9 (diff) | |
| parent | a8271676a0598594762cc53e4f577337eb275313 (diff) | |
| download | Ishtar-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.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 |
