Closed ndushay closed 5 years ago
Exception: ParseDate::Error: Unable to parse range from '502-504': undefined method `>' for nil:NilClass
/usr/local/bundle/gems/parse_date-0.3.1/lib/parse_date.rb:49:in `rescue in parse_range'
Caused by
NoMethodError: undefined method `>' for nil:NilClass
/usr/local/bundle/gems/parse_date-0.3.1/lib/parse_date.rb:58:in `year_range_valid?'
[ERROR] Unable to parse range from '502-504': undefined method `>' for nil:NilClass
/usr/local/bundle/gems/parse_date-0.3.1/lib/parse_date.rb:49:in `rescue in parse_range': Unable to parse range from '502-504': undefined method `>' for nil:NilClass (ParseDate::Error)
from /usr/local/bundle/gems/parse_date-0.3.1/lib/parse_date.rb:42:in `parse_range'
from /opt/traject/lib/macros/date_parsing.rb:34:in `block (2 levels) in parse_range'
from /opt/traject/lib/macros/date_parsing.rb:33:in `each'
from /opt/traject/lib/macros/date_parsing.rb:33:in `block in parse_range'
from /usr/local/bundle/gems/traject-3.2.0/lib/traject/indexer/step.rb:138:in `block in execute'
I can't think of a good reason NOT to allow dates earlier than -999.
DLME using .parse_range for American Numismatic Society gets this error: