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

Commita04a5a5

Browse files
author
Gauvain Pocentek
committed
return explicit error message on 404
1 parent34e4304 commita04a5a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎gitlab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def get(self, obj_class, id=None, **kwargs):
242242
returnr.json()
243243
elifr.status_code==401:
244244
raiseGitlabAuthenticationError(r.json()['message'])
245+
elifr.status_code==404:
246+
raiseGitlabGetError("Object doesn't exist")
245247
else:
246248
raiseGitlabGetError('%d: %s'% (r.status_code,r.text))
247249

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp