Skip to content

Commit c5a37be

Browse files
committed
fix(commit): ensure 'questions' is a Python dictionary and not TOML
Details: If using a TOML configuration, the type was 'tomlkit.items.AoT' --- Signed-off-by: Adrian DC <[email protected]>
1 parent de33de3 commit c5a37be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commitizen/commands/commit.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def read_backup_message(self) -> str | None:
5151
def prompt_commit_questions(self) -> str:
5252
# Prompt user for the commit message
5353
cz = self.cz
54-
questions = cz.questions()
54+
questions = [dict(question) for question in cz.questions()]
55+
5556
for question in filter(lambda q: q["type"] == "list", questions):
5657
question["use_shortcuts"] = self.config.settings["use_shortcuts"]
5758
try:

0 commit comments

Comments
 (0)