Skip to content

Commit 5d9ff52

Browse files
committed
fix: resolve KeyError when team becomes empty and logic mismatch (#189)
1 parent 9720ed3 commit 5d9ff52

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)