We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 847576f + 4a3dfc8 commit db9c46dCopy full SHA for db9c46d
1 file changed
commit/commit.py
@@ -288,13 +288,13 @@ def generate_commit_message_base_diff(user_input, diff):
288
289
if (
290
not response["content"]
291
- and response["error"]
+ and response.get("error", None)
292
and f'{response["error"]}'.find("This model's maximum context length is") > 0
293
):
294
print(model_token_limit_error)
295
sys.exit(0)
296
297
- assert_value(not response["content"], response["error"])
+ assert_value(not response["content"], response.get("error", ""))
298
response["content"] = extract_markdown_block(response["content"])
299
return response
300
0 commit comments