This commit is contained in:
1 parent
c360639456
commit
8c874e8115
1 file changed
+2
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user