Unverified Commit 9bf26df9 authored by John Villalovos's avatar John Villalovos Committed by GitHub
Browse files

fix: raise GitlabHeadError in `project.files.head()` method (#3006)

When an error occurs, raise `GitlabHeadError` in
`project.files.head()` method.

Closes: #3004
parent 2ab0b9fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ class ProjectFileManager(CreateMixin, UpdateMixin, DeleteMixin, RESTManager):
            assert isinstance(server_data, dict)
        return self._obj_cls(self, server_data)

    @exc.on_http_error(exc.GitlabHeadError)
    def head(
        self, file_path: str, ref: str, **kwargs: Any
    ) -> "requests.structures.CaseInsensitiveDict[Any]":