summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2013-05-18 15:52:26 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2013-05-18 15:52:26 +0200
commit4ee9c8c72325e145b1349e325a335b744455d3da (patch)
treed2d66fbc33e670c8f6bb8fba2572d0c3709f010c /gitlab.py
parent1d55e67b7335926435cb2298b675698cec1873d0 (diff)
downloadgitlab-4ee9c8c72325e145b1349e325a335b744455d3da.tar.gz
raise an exception if deletion fails
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab.py b/gitlab.py
index aaf2ddd..76f610b 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -227,6 +227,8 @@ class Gitlab(object):
return True
elif r.status_code == 401:
raise GitlabAuthenticationError(r.json()['message'])
+ else:
+ raise GitlabDeleteError(r.json()['message'])
return False
def create(self, obj):