Skip to content

Commit a7f0eb5

Browse files
committed
handle member: or maintainer: values being None
1 parent 6bd32c9 commit a7f0eb5

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
@@ -475,7 +475,13 @@ def _aggregate_lists(self, *lists: list[str | int]) -> list[str | int]:
475475
"""Combine multiple lists into one while removing duplicates"""
476476
complete = []
477477
for single_list in lists:
478-
complete.extend(single_list)
478+
if single_list is not None:
479+
complete.extend(single_list)
480+
else:
481+
logging.debug(
482+
"A list that we attempted to extend to another was None. "
483+
"This probably happened because a 'member:' or 'maintainer:' key was left empty"
484+
)
479485

480486
return list(set(complete))
481487

0 commit comments

Comments
 (0)