Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9bf26df

Browse files
fix: raise GitlabHeadError inproject.files.head() method (#3006)
When an error occurs, raise `GitlabHeadError` in`project.files.head()` method.Closes:#3004
1 parent2ab0b9f commit9bf26df

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
@@ -137,6 +137,7 @@ def get(self, file_path: str, ref: str, **kwargs: Any) -> ProjectFile:
137137
assertisinstance(server_data,dict)
138138
returnself._obj_cls(self,server_data)
139139

140+
@exc.on_http_error(exc.GitlabHeadError)
140141
defhead(
141142
self,file_path:str,ref:str,**kwargs:Any
142143
)->"requests.structures.CaseInsensitiveDict[Any]":

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp