From f63ab6e2886c4187b3be4dc16d6b8f4492395203 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Mon, 30 Sep 2024 13:29:10 +0200 Subject: [PATCH] fix(files): correctly raise GitlabGetError in get method --- gitlab/v4/objects/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py index 78476f5ad..cbadb67ec 100644 --- a/gitlab/v4/objects/files.py +++ b/gitlab/v4/objects/files.py @@ -112,6 +112,7 @@ class ProjectFileManager(CreateMixin, UpdateMixin, DeleteMixin, RESTManager): @cli.register_custom_action( cls_names="ProjectFileManager", required=("file_path", "ref") ) + @exc.on_http_error(exc.GitlabGetError) def get(self, file_path: str, ref: str, **kwargs: Any) -> ProjectFile: """Retrieve a single file.