From d6ff28dd556a52a33388922e0c782c7391172fe3 Mon Sep 17 00:00:00 2001 From: Max Drexler <mndrexler@wisc.edu> Date: Thu, 25 Jul 2024 15:04:01 +0000 Subject: [PATCH] more robust error handling in realtime --- grib_processor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grib_processor/utils.py b/grib_processor/utils.py index 7650600..07eaf3e 100644 --- a/grib_processor/utils.py +++ b/grib_processor/utils.py @@ -178,7 +178,7 @@ def realtime(file_iter: Iterable[str]) -> Generator[GribPayload, None, None]: ): LOG.debug("realtime - got msg %s:%d", file, msg_num) yield msg - except (KeyError, OSError): + except Exception: LOG.exception( "realtime - Error processing grib file %s @ msg %d", file, msg_num or 0 ) -- GitLab