lib/sup/mbox.rb in sup-0.9 vs lib/sup/mbox.rb in sup-0.9.1
- old
+ new
@@ -12,10 +12,10 @@
time = $1
begin
## hack -- make Time.parse fail when trying to substitute values from Time.now
Time.parse time, 0
true
- rescue NoMethodError
+ rescue NoMethodError, ArgumentError
warn "found invalid date in potential mbox split line, not splitting: #{l.inspect}"
false
end
end
module_function :is_break_line?