Skip to content

Commit f624d2e

Browse files
author
Gauvain Pocentek
authored
Merge pull request #382 from ptomato/subscribe-response-code
Expected HTTP response for subscribe is 201
2 parents 8f3b656 + 0d5f275 commit f624d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v3/objects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def subscribe(self, **kwargs):
934934
{'project_id': self.project_id, 'issue_id': self.id})
935935

936936
r = self.gitlab._raw_post(url, **kwargs)
937-
raise_error_from_response(r, GitlabSubscribeError)
937+
raise_error_from_response(r, GitlabSubscribeError, 201)
938938
self._set_from_dict(r.json())
939939

940940
def unsubscribe(self, **kwargs):

0 commit comments

Comments
 (0)