summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/__init__.py')
-rw-r--r--gitlab/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 82a2414..679b023 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -103,6 +103,7 @@ class Gitlab(object):
self.runners = RunnerManager(self)
self.settings = ApplicationSettingsManager(self)
self.sidekiq = SidekiqManager(self)
+ self.snippets = SnippetManager(self)
self.users = UserManager(self)
self.teams = TeamManager(self)
self.todos = TodoManager(self)
@@ -469,7 +470,8 @@ class Gitlab(object):
params.pop(obj.idAttr)
r = self._raw_delete(url, **params)
- raise_error_from_response(r, GitlabDeleteError)
+ raise_error_from_response(r, GitlabDeleteError,
+ expected_code=[200, 204])
return True
def create(self, obj, **kwargs):