Skip to content

Commit

Permalink
Merge pull request #165 from hakkeroid/patch-1
Browse files Browse the repository at this point in the history
Fix ProjectBuild.play raising error even on success
  • Loading branch information
Gauvain Pocentek committed Oct 17, 2016
2 parents 945cc66 + 0793271 commit 5f444e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/objects.py
Expand Up @@ -965,7 +965,7 @@ def play(self, **kwargs):
"""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)."""
Expand Down

0 comments on commit 5f444e4

Please sign in to comment.