summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-12-11 10:11:43 +0100
committerGitHub <noreply@github.com>2017-12-11 10:11:43 +0100
commitf624d2e642e4ebabb8d330595f3fe0fc9882add7 (patch)
tree6b5210039e21d6bcce9310c3851c416d43d93b13
parent8f3b656d007c95fa2fa99389aaf326a2eb998e16 (diff)
parent0d5f275d9b23d20da45ac675da10bfd428327a2f (diff)
downloadgitlab-f624d2e642e4ebabb8d330595f3fe0fc9882add7.tar.gz
Merge pull request #382 from ptomato/subscribe-response-code
Expected HTTP response for subscribe is 201
-rw-r--r--gitlab/v3/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v3/objects.py b/gitlab/v3/objects.py
index ab81521..0db9dfd 100644
--- a/gitlab/v3/objects.py
+++ b/gitlab/v3/objects.py
@@ -934,7 +934,7 @@ class ProjectIssue(GitlabObject):
{'project_id': self.project_id, 'issue_id': self.id})
r = self.gitlab._raw_post(url, **kwargs)
- raise_error_from_response(r, GitlabSubscribeError)
+ raise_error_from_response(r, GitlabSubscribeError, 201)
self._set_from_dict(r.json())
def unsubscribe(self, **kwargs):