Skip to content

Commit

Permalink
202 is expected on some delete operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 23, 2017
1 parent cd18aee commit b9eb10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/__init__.py
Expand Up @@ -495,7 +495,7 @@ def delete(self, obj, id=None, **kwargs):

r = self._raw_delete(url, **params)
raise_error_from_response(r, GitlabDeleteError,
expected_code=[200, 204])
expected_code=[200, 202, 204])
return True

def create(self, obj, **kwargs):
Expand Down

0 comments on commit b9eb10a

Please sign in to comment.