Skip to content

Commit 4ee9c8c

Browse files
author
Gauvain Pocentek
committed
raise an exception if deletion fails
1 parent 1d55e67 commit 4ee9c8c

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
@@ -227,6 +227,8 @@ def delete(self, obj):
227227
return True
228228
elif r.status_code == 401:
229229
raise GitlabAuthenticationError(r.json()['message'])
230+
else:
231+
raise GitlabDeleteError(r.json()['message'])
230232
return False
231233

232234
def create(self, obj):

0 commit comments

Comments
 (0)