Skip to content

Commit a78bde4

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 303d18b commit a78bde4

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
@@ -48,7 +48,8 @@ def read_backup_message(self) -> str | None:
4848
def prompt_commit_questions(self) -> str:
4949
# Prompt user for the commit message
5050
cz = self.cz
51-
questions = cz.questions()
51+
questions = [dict(question) for question in cz.questions()]
52+
5253
for question in filter(lambda q: q["type"] == "list", questions):
5354
question["use_shortcuts"] = self.config.settings["use_shortcuts"]
5455
try:

0 commit comments

Comments
 (0)