diff options
| author | 2021-10-25 19:34:57 -0400 | |
|---|---|---|
| committer | 2021-10-25 19:34:57 -0400 | |
| commit | db234c338189030dd17182d71b55a261c50e1ab0 (patch) | |
| tree | 415881ad8dcadd0cfc866c4706b197b68ba629e5 /bot/exts/events/hacktoberfest/hacktober-issue-finder.py | |
| parent | fix: finish restructure with all functionality (diff) | |
| parent | Merge branch 'main' into color-677 (diff) | |
Merge branch 'color-677' of github.com:brad90four/sir-lancebot into color-677
Diffstat (limited to 'bot/exts/events/hacktoberfest/hacktober-issue-finder.py')
| -rw-r--r-- | bot/exts/events/hacktoberfest/hacktober-issue-finder.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/bot/exts/events/hacktoberfest/hacktober-issue-finder.py b/bot/exts/events/hacktoberfest/hacktober-issue-finder.py index 088e7e43..1774564b 100644 --- a/bot/exts/events/hacktoberfest/hacktober-issue-finder.py +++ b/bot/exts/events/hacktoberfest/hacktober-issue-finder.py @@ -100,7 +100,8 @@ class HacktoberIssues(commands.Cog):          """Format the issue data into a embed."""          title = issue["title"]          issue_url = issue["url"].replace("api.", "").replace("/repos/", "/") -        body = issue["body"] +        # issues can have empty bodies, which in that case GitHub doesn't include the key in the API response +        body = issue.get("body", "")          labels = [label["name"] for label in issue["labels"]]          embed = discord.Embed(title=title) | 
