Skip to content

Commit 4619b06

Browse files
committed
handle member: or maintainer: values being None
1 parent 9bd4eb8 commit 4619b06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gh_org_mgr/_gh_org.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,13 @@ def _aggregate_lists(self, *lists: list[str | int]) -> list[str | int]:
471471
"""Combine multiple lists into one while removing duplicates"""
472472
complete = []
473473
for single_list in lists:
474-
complete.extend(single_list)
474+
if single_list is not None:
475+
complete.extend(single_list)
476+
else:
477+
logging.debug(
478+
"A list that we attempted to extend to another was None. "
479+
"This probably happened because a 'member:' or 'maintainer:' key was left empty"
480+
)
475481

476482
return list(set(complete))
477483

0 commit comments

Comments
 (0)