diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2017-12-03 13:17:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-03 13:17:15 -0800 |
commit | 0d5f275d9b23d20da45ac675da10bfd428327a2f (patch) | |
tree | 097d4315f432d8d6694adc62833a76a9522613a3 /gitlab/v3/objects.py | |
parent | 084b905f78046d894fc76d3ad545689312b94bb8 (diff) | |
download | gitlab-0d5f275d9b23d20da45ac675da10bfd428327a2f.tar.gz |
Expected HTTP response for subscribe is 201
It seems that the GitLab API gives HTTP response code 201 ("created") when
successfully subscribing to an object, not 200.
Diffstat (limited to 'gitlab/v3/objects.py')
-rw-r--r-- | gitlab/v3/objects.py | 2 |
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): |