Skip to content

Commit

Permalink
Make Exception handles more
Browse files Browse the repository at this point in the history
  • Loading branch information
xianghao-wang committed Oct 29, 2022
1 parent 998d435 commit b59a325
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public TemporalAccessor fromString(String string) {
if (StringUtil.isNotBlank(string)) {
try {
return dateFormatter.parse(string);
} catch (DateTimeParseException exception) {
} catch (Exception exception) {
// We accept all kinds of dates (not just in the format specified)
return Date.parse(string).map(Date::toTemporalAccessor).orElse(null);
}
Expand Down

0 comments on commit b59a325

Please sign in to comment.