Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(platform): handle None value in issue body when fetching GitHub issues (#8773)

Abhimanyu Yadav708ed9a91c63
diff --git a/autogpt_platform/backend/backend/blocks/github/issues.py b/autogpt_platform/backend/backend/blocks/github/issues.py
index 24790accec..8cab07db3f 100644
--- a/autogpt_platform/backend/backend/blocks/github/issues.py
+++ b/autogpt_platform/backend/backend/blocks/github/issues.py
@@ -234,9 +234,12 @@ class GithubReadIssueBlock(Block):
credentials,
input_data.issue_url,
)
- yield "title", title
- yield "body", body
- yield "user", user
+ if title:
+ yield "title", title
+ if body:
+ yield "body", body
+ if user:
+ yield "user", user
class GithubListIssuesBlock(Block):