Skip to content

Commit

Permalink
[bug-69529] relax exception check
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922987 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Jan 8, 2025
1 parent b0515e7 commit 4ca89e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private void outputCell() {
// Try to use the value as a formattable number
double d = Double.parseDouble(fv);
thisStr = formatter.formatRawCellContents(d, this.formatIndex, this.formatString);
} catch (NumberFormatException e) {
} catch (Exception e) {
// Formula is a String result not a Numeric one
LOG.atInfo().log(
"Error formatting cell '{}' - will use its raw value instead (format '{}')",
Expand Down Expand Up @@ -434,7 +434,7 @@ private void outputCell() {
try {
thisStr = formatter.formatRawCellContents(
Double.parseDouble(n), this.formatIndex, this.formatString);
} catch (NumberFormatException e) {
} catch (Exception e) {
LOG.atInfo().log(
"Error formatting cell '{}' - will use its raw value instead (format '{}')",
cellRef,
Expand Down

0 comments on commit 4ca89e1

Please sign in to comment.