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

Commitfd40fce

Browse files
author
Gauvain Pocentek
authored
Merge pull request#307 from RobberPhex/fix-tag-api
Fix tag api
2 parents3d8df3c +b537b30 commitfd40fce

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎gitlab/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,12 @@ def sanitized_url(url):
679679

680680
ifresult.status_code==401:
681681
raiseGitlabAuthenticationError(response_code=result.status_code,
682-
error_message=result.content)
682+
error_message=result.content,
683+
response_body=result.content)
683684

684685
raiseGitlabHttpError(response_code=result.status_code,
685-
error_message=result.content)
686+
error_message=result.content,
687+
response_body=result.content)
686688

687689
defhttp_get(self,path,query_data={},streamed=False,**kwargs):
688690
"""Make a GET request to the Gitlab server.

‎gitlab/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ def wrapped_f(*args, **kwargs):
230230
try:
231231
returnf(*args,**kwargs)
232232
exceptGitlabHttpErrorase:
233-
raiseerror(e.response_code,e.error_message)
233+
raiseerror(e.error_message,e.response_code,e.response_body)
234234
returnwrapped_f
235235
returnwrap

‎gitlab/v4/objects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,7 @@ def set_release_description(self, description, **kwargs):
10351035
self.release=server_data
10361036

10371037

1038-
classProjectTagManager(GetFromListMixin,CreateMixin,DeleteMixin,
1039-
RESTManager):
1038+
classProjectTagManager(NoUpdateMixin,RESTManager):
10401039
_path='/projects/%(project_id)s/repository/tags'
10411040
_obj_cls=ProjectTag
10421041
_from_parent_attrs= {'project_id':'id'}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp