Skip to content

Commit 13c65f1

Browse files
Update src/ghdcbot/adapters/github/rest.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 2f2e6b6 commit 13c65f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ghdcbot/adapters/github/rest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,9 @@ def _list_repos(self) -> Sequence[dict]:
421421
if status == 200 and not repos:
422422
self._logger.info("Organization has no repositories yet", extra={"org": self._org})
423423
user_fallback = _load_user_fallback()
424-
if user_fallback and (status in {401, 403} or (status == 200 and not repos)):
424+
if user_fallback and status in {401, 403}:
425425
self._logger.info("Falling back to user repositories (not an org member)")
426426
repos, _ = self._list_repos_from_path("/user/repos")
427-
428427
self._last_repo_count = len(repos)
429428
if not repos:
430429
self._logger.warning("No repositories discovered", extra={"org": self._org})

0 commit comments

Comments
 (0)