Skip to content

Commit 9c30810

Browse files
authored
Fix KeyError when team becomes empty (#189)
1 parent 9720ed3 commit 9c30810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gh_org_mgr/_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def remove_member_without_team(self, user: str, removed: bool) -> None:
111111
def update_repo(self, repo_name: str, **changes: bool | str | list[str]) -> None:
112112
"""Update team changes."""
113113
# Initialise repo if not present
114-
if repo_name not in self.teams:
114+
if repo_name not in self.repos:
115115
self.repos[repo_name] = RepoChanges()
116116

117117
implement_changes_into_class(dc_object=self.repos[repo_name], **changes)

0 commit comments

Comments
 (0)