summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index e61483a..d7688d0 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -965,7 +965,7 @@ class ProjectBuild(GitlabObject):
"""Trigger a build explicitly."""
url = '/projects/%s/builds/%s/play' % (self.project_id, self.id)
r = self.gitlab._raw_post(url)
- raise_error_from_response(r, GitlabBuildPlayError, 201)
+ raise_error_from_response(r, GitlabBuildPlayError)
def erase(self, **kwargs):
"""Erase the build (remove build artifacts and trace)."""