Skip to content

Commit

Permalink
Except both possible test case errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Mar 1, 2024
1 parent c4d09d4 commit 19544ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19544ef

Please sign in to comment.