mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-05 06:02:15 +00:00
Merge pull request #982 from langchain-ai/yogesh/linear-comment-user-null
fix: Handle missing Linear comment user in prompt
This commit is contained in:
commit
a502191a7f
1 changed files with 2 additions and 1 deletions
|
|
@ -625,7 +625,8 @@ async def process_linear_issue( # noqa: PLR0912, PLR0915
|
||||||
if relevant_comments:
|
if relevant_comments:
|
||||||
comments_text = "\n\n## Comments:\n"
|
comments_text = "\n\n## Comments:\n"
|
||||||
for comment in relevant_comments:
|
for comment in relevant_comments:
|
||||||
author = comment.get("user", {}).get("name", "Unknown")
|
user = comment.get("user") or {}
|
||||||
|
author = user.get("name", "User")
|
||||||
body = comment.get("body", "")
|
body = comment.get("body", "")
|
||||||
body_image_urls = extract_image_urls(body)
|
body_image_urls = extract_image_urls(body)
|
||||||
if body_image_urls:
|
if body_image_urls:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue