Skip to content

Correctly raise GitlabHeadError in head method #3004

Description

@acudovs

Description of the problem, including code/CLI snippet

GitlabHeadError should be raised in https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/files.py#L140

Expected Behavior

GitlabHeadError

Actual Behavior

GitlabHttpError

Specifications

  • python-gitlab version: v4.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions