From b9c329535d36217ff01fdfc8aa052ac053190fc9 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 18 Jan 2024 19:41:35 +0100 Subject: [PATCH] Fix for #2980 (invalid seriesindex causes no longer a crash) --- cps/jinjia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/jinjia.py b/cps/jinjia.py index e42c650c..584e7d6b 100644 --- a/cps/jinjia.py +++ b/cps/jinjia.py @@ -124,7 +124,7 @@ def formatseriesindex_filter(series_index): return int(series_index) else: return series_index - except ValueError: + except (ValueError, TypeError): return series_index return 0