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 | 192f79a86561f276ac270992ace46932a63504a6 (patch) | |
| tree | 94ef700e01126eb623973e51a22c334615a940e8 /archaeological_operations/utils.py | |
| parent | 67a6383c6f50f768e62070a68d01b4589f516cab (diff) | |
| download | Ishtar-192f79a86561f276ac270992ace46932a63504a6.tar.bz2 Ishtar-192f79a86561f276ac270992ace46932a63504a6.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  | 
