Skip to content

Commit

Permalink
Logging message is referencing an error alias that doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Oct 17, 2024
1 parent 6123792 commit 9a41877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metcalcpy/util/ctc_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def calculate_pofd(input_data, columns_names, logger=None):
result = fy_on / oy
result = round_half_up(result, PRECISION)
safe_log(logger, "info", f"POFD calculation successful: {result}")
except (TypeError, ZeroDivisionError, Warning, ValueError):
except (TypeError, ZeroDivisionError, Warning, ValueError) as e:
safe_log(logger, "error", f"Error in POFD calculation: {e}")
result = None
warnings.filterwarnings('ignore')
Expand Down

0 comments on commit 9a41877

Please sign in to comment.