Skip to content

Commit f535274

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 <radian.dc@gmail.com>
1 parent 74228d1 commit f535274

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commitizen/commands/commit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def _read_backup_message(self) -> str | None:
6565
def _prompt_commit_questions(self) -> str:
6666
# Prompt user for the commit message
6767
cz = self.cz
68-
questions = cz.questions()
68+
questions = [dict(question) for question in cz.questions()]
69+
6970
for question in (q for q in questions if q["type"] == "list"):
7071
question["use_shortcuts"] = self.config.settings["use_shortcuts"]
7172
try:

0 commit comments

Comments
 (0)