mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
catch both possible exception types
This commit is contained in:
parent
a969a49ae8
commit
7bf7ed0569
@ -39,7 +39,7 @@ module ValidatesTimeliness
|
|||||||
DateTime.civil(*(time_array << zone_offset))
|
DateTime.civil(*(time_array << zone_offset))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue ArgumentError
|
rescue ArgumentError, TypeError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user