Skip to content

Silently ignored error #760

@mfocko

Description

@mfocko

Discovered in: #759
Cause: An exception is raised when querying the users with permissions on a project, if the current user accessing the API doesn't have any permission themselves. However the current implementation checks generic GitHub exception which can lead to catching also other kind of errors, e.g. 50x

except github.GithubException:
logger.debug(
"Current Github token must have push access to view repository permissions."
)
return set()

Metadata

Metadata

Assignees

Labels

area/githubGitHub-forge relatedgood-first-issueGood for newcomerskind/bugAn unexpected problem or behavior

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions