Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d66b2d

Browse files
committedAug 17, 2024
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 0ec9ec8 commit 4d66b2d

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)
Please sign in to comment.