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

Commit178bfb7

Browse files
author
Gauvain Pocentek
committed
Handle empty messages from server in exceptions
1 parent4a73b85 commit178bfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitlab/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class to raise. Should be inherited from GitLabError
134134

135135
try:
136136
message=response.json()['message']
137-
except (KeyError,ValueError):
137+
except (KeyError,ValueError,TypeError):
138138
message=response.content
139139

140140
ifisinstance(error,dict):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp