From 9a418775e40c9766f796653d2b8c59eaa92b883d Mon Sep 17 00:00:00 2001 From: bikegeek Date: Thu, 17 Oct 2024 15:21:03 -0600 Subject: [PATCH] Logging message is referencing an error alias that doesn't exist. --- metcalcpy/util/ctc_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metcalcpy/util/ctc_statistics.py b/metcalcpy/util/ctc_statistics.py index da289b1e..5d2fb317 100644 --- a/metcalcpy/util/ctc_statistics.py +++ b/metcalcpy/util/ctc_statistics.py @@ -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')