Skip to content

Commit

Permalink
Check for empty strings during question-parsing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
raunakab committed Jan 2, 2025
1 parent cc76fa1 commit c4d6b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/git_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(","))))

0 comments on commit c4d6b47

Please sign in to comment.