catch both possible exception types

This commit is contained in:
Adam Meehan 2009-09-09 16:25:04 +10:00
parent a969a49ae8
commit 7bf7ed0569

View File

@ -39,7 +39,7 @@ module ValidatesTimeliness
DateTime.civil(*(time_array << zone_offset))
end
end
rescue ArgumentError
rescue ArgumentError, TypeError
nil
end