FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(files): correctly raise GitlabGetError in get method · python-gitlab/python-gitlab@190ec89 · GitHub

Repository navigation

Commit 190ec89

Browse files
authored andcommitted
fix(files): correctly raise GitlabGetError in get method
1 parent 64eed5d commit 190ec89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎gitlab/v4/objects/files.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class ProjectFileManager(CreateMixin, UpdateMixin, DeleteMixin, RESTManager):
112112
@cli.register_custom_action(
113113
cls_names="ProjectFileManager", required=("file_path", "ref")
114114
)
115+
@exc.on_http_error(exc.GitlabGetError)
115116
def get(self, file_path: str, ref: str, **kwargs: Any) -> ProjectFile:
116117
"""Retrieve a single file.
117118

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL