Skip to content

Commit 31998f2

Browse files
authored
Handle the case when ignored_contributors is None
1 parent cfcc081 commit 31998f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github_activity/github_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ 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(fnmatch.fnmatch(username, user) for user in ignored_contributors):
471471
return True
472472
return False
473473

0 commit comments

Comments
 (0)