diff options
author | 2020-10-21 13:32:24 +0200 | |
---|---|---|
committer | 2020-10-21 13:32:24 +0200 | |
commit | 8e0c0d6046160bf68a89f571f54554209f353af5 (patch) | |
tree | 282cbfbdba6efb00ce2c915a94c378fb5aab3dae | |
parent | Blank commit to retrigger deployment (diff) | |
parent | fix keyerror (diff) |
PR #508 Hackstats: fix KeyError on invalid PRs
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index 94bfe138..c872e241 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -307,7 +307,7 @@ class HacktoberStats(commands.Cog): # if the PR has 'invalid' or 'spam' labels, the PR must be # either merged or approved for it to be included if HacktoberStats._has_label(item, ["invalid", "spam"]): - if not await HacktoberStats._is_accepted(item): + if not await HacktoberStats._is_accepted(itemdict): continue # PRs before oct 3 no need to check for topics |