mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 08:03:15 +00:00
fix/Handle missing Linear comment user in prompt
This commit is contained in:
parent
84ae60ad49
commit
41586c2610
1 changed files with 2 additions and 1 deletions
|
|
@ -625,7 +625,8 @@ async def process_linear_issue( # noqa: PLR0912, PLR0915
|
|||
if relevant_comments:
|
||||
comments_text = "\n\n## Comments:\n"
|
||||
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_image_urls = extract_image_urls(body)
|
||||
if body_image_urls:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue