We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178bfb7 commit d7967c6Copy full SHA for d7967c6
gitlab/objects.py
@@ -1370,7 +1370,8 @@ def subscribe(self, **kwargs):
1370
1371
r = self.gitlab._raw_post(url, **kwargs)
1372
raise_error_from_response(r, GitlabSubscribeError, [201, 304])
1373
- self._set_from_dict(r.json())
+ if r.status_code == 201:
1374
+ self._set_from_dict(r.json())
1375
1376
def unsubscribe(self, **kwargs):
1377
"""Unsubscribe a MR.
@@ -1385,7 +1386,8 @@ def unsubscribe(self, **kwargs):
1385
1386
1387
r = self.gitlab._raw_delete(url, **kwargs)
1388
raise_error_from_response(r, GitlabUnsubscribeError, [200, 304])
1389
+ if r.status_code == 200:
1390
1391
1392
def cancel_merge_when_build_succeeds(self, **kwargs):
1393
"""Cancel merge when build succeeds."""
0 commit comments