From c4d6b47ed7cd741681949e2dd34d7b5f7f59213f Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Thu, 2 Jan 2025 12:29:04 -0700 Subject: [PATCH] Check for empty strings during question-parsing logic --- tools/git_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/git_utils.py b/tools/git_utils.py index 91ab589780..a149363bdc 100644 --- a/tools/git_utils.py +++ b/tools/git_utils.py @@ -88,4 +88,4 @@ def to_int(q: str) -> int: ) return question - return [to_int(q) for q in questions.split(",")] + return list(map(to_int, filter(lambda q: q, questions.split(","))))