Skip to content

Commit 5f444e4

Browse files
author
Gauvain Pocentek
authored
Merge pull request #165 from hakkeroid/patch-1
Fix ProjectBuild.play raising error even on success
2 parents 945cc66 + 0793271 commit 5f444e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/objects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def play(self, **kwargs):
965965
"""Trigger a build explicitly."""
966966
url = '/projects/%s/builds/%s/play' % (self.project_id, self.id)
967967
r = self.gitlab._raw_post(url)
968-
raise_error_from_response(r, GitlabBuildPlayError, 201)
968+
raise_error_from_response(r, GitlabBuildPlayError)
969969

970970
def erase(self, **kwargs):
971971
"""Erase the build (remove build artifacts and trace)."""

0 commit comments

Comments
 (0)