Skip to content

Commit 5853a1c

Browse files
authored
Merge pull request #152 from jtpio/ignored-contributors-none
Handle the case when `ignored_contributors` is `None`
2 parents cfcc081 + 0dd4ea2 commit 5853a1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

github_activity/github_activity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ def generate_activity_md(
467467
def ignored_user(username):
468468
if username in bot_users:
469469
return True
470-
if any(fnmatch.fnmatch(username, user) for user in ignored_contributors):
470+
if ignored_contributors and any(
471+
fnmatch.fnmatch(username, user) for user in ignored_contributors
472+
):
471473
return True
472474
return False
473475

0 commit comments

Comments
 (0)