Skip to content

GitlabHttpError raised instead of GitlabGetError #2998

@dmoller1

Description

@dmoller1

Description of the problem, including code/CLI snippet

ProjectFileManager.get() raises GitlabHttpError instead of GitlabGetError when trying to retrieve a file which does not exist.

Expected Behavior

When calling ProjectFileManager.get(), it raises GitlabGetError if the given file does not exist.

Actual Behavior

When calling ProjectFileManager.get(), it raises GitlabHttpError if the given file does not exist.

Specifications

  • python-gitlab version: 4.12
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions