diff options
| author | 2021-10-26 07:38:22 -0400 | |
|---|---|---|
| committer | 2021-10-26 07:38:22 -0400 | |
| commit | 93fa57ae4ad6892f660d841eb1f28b9f1bf9b2c2 (patch) | |
| tree | 48c1590bb846514be2c1897e547bd3ad5156fc3f /bot/exts/events/hacktoberfest/hacktober-issue-finder.py | |
| parent | Merge branch 'color-677' of https://github.com/brad90four/sir-lancebot into c... (diff) | |
| parent | chore: code cleanup (diff) | |
Merge branch 'color-677' of https://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) | 
