Skip to content

Commit f589ce6

Browse files
authored
Merge pull request #423 from devchat-ai/fix_test_error
Fix content concatenation in commit_cases.py
2 parents b0729ec + e4cda90 commit f589ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/workflows/commit_cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def commit_message_compare(commit_message_a, commit_message_b, diff):
157157

158158
content = ''
159159
for chunk in response:
160-
content += chunk.choices[0].delta.content
160+
content += (chunk.choices[0].delta.content or "")
161161
print('AI says:', content)
162162
return compare_result_parser(content)
163163

0 commit comments

Comments
 (0)