time: log why a permission lookup failed
ci / test (push) Successful in 34s

This commit is contained in:
teahubxyz committed 2026-10-13 23:57:12 -07:00
1 parent c360639456
commit 8c874e8115
1 file changed
+2 -1
+2 -1
View File
@@ -101,7 +101,8 @@ def trusted(login: str | None) -> bool:
if login not in _trust:
try:
perm = gh("GET", f"/repos/{REPO}/collaborators/{login}/permission").get("permission")
except RuntimeError:
except RuntimeError as e:
print(f"trust({login}): {e}")
perm = None
_trust[login] = perm in ("admin", "write", "owner")
return _trust[login]