aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-10-21 13:32:24 +0200
committerGravatar GitHub <[email protected]>2020-10-21 13:32:24 +0200
commit8e0c0d6046160bf68a89f571f54554209f353af5 (patch)
tree282cbfbdba6efb00ce2c915a94c378fb5aab3dae
parentBlank commit to retrigger deployment (diff)
parentfix keyerror (diff)
PR #508 Hackstats: fix KeyError on invalid PRs
-rw-r--r--bot/exts/halloween/hacktoberstats.py2
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