From 19544ef44857c5dfdbff4b6c6d3c22aeffd3ffcb Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Fri, 1 Mar 2024 10:10:28 +0100 Subject: [PATCH] Except both possible test case errors --- pyam/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyam/utils.py b/pyam/utils.py index cc12b0835..2f3724d57 100644 --- a/pyam/utils.py +++ b/pyam/utils.py @@ -152,7 +152,7 @@ def strip_R_integer_prefix(c): except ValueError: # nope, not an int, fall down to final return statement pass - except TypeError: + except (TypeError, IndexError): # not a string/iterable/etc, fall down to final return statement pass return c