Skip to content

Commit

Permalink
Handle null closed_by fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Feb 26, 2024
1 parent 5db3a23 commit ed79568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solidation/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ def to_markdown(self) -> str:
def get_by_counts(iterable: Iterable[Any], attr: str) -> Counter[str]:
counts: Counter[str] = Counter()
for i in iterable:
name = getattr(i, attr).login
counts[name] += 1
if (actor := getattr(i, attr, None)) is not None:
counts[actor.login] += 1
return counts


Expand Down

0 comments on commit ed79568

Please sign in to comment.