diff options
author | 2020-10-08 03:34:13 +0000 | |
---|---|---|
committer | 2020-10-08 03:34:13 +0000 | |
commit | 1f6d9fbf3535ca4a2c77f4a69f3211c7ec8072f3 (patch) | |
tree | b61dd4b0d972d7d13534d0288bed36b409c1552b /bot/exts/halloween/hacktoberstats.py | |
parent | fix for when pr has no labels (diff) |
return instead of return boolean
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index f4b8f51c..fc66bfa8 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -267,12 +267,10 @@ class HacktoberStats(commands.Cog): # Ignore logging non-existent users or users we do not have permission to see if api_message == GITHUB_NONEXISTENT_USER_MESSAGE: logging.debug(f"No GitHub user found named '{github_username}'") - return False + return else: logging.error(f"GitHub API request for '{github_username}' failed with message: {api_message}") - return False - - return True + return if jsonresp["total_count"] == 0: # Short circuit if there aren't any PRs |