8000 fix(files): correctly raise GitlabGetError in get method · python-gitlab/python-gitlab@190ec89 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 190ec89

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)
0