Skip to content

Commit

Permalink
Merge pull request #98 from aderbas/fix_response_code
Browse files Browse the repository at this point in the history
Fix response code
  • Loading branch information
allburov authored May 16, 2022
2 parents 56644a3 + 60cea93 commit b10b49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfs/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def __send_request(self, method, uri, data, headers=None, payload=None, underPro
try:
result = response.json()

if response.status_code != 200:
if response.status_code not in (200, 201, 202):
raise TFSClientError('TFS API returned HTTP %s (%s)' % (
response.status_code, result['error'] if 'error' in result else response.reason))
return result
Expand Down

0 comments on commit b10b49e

Please sign in to comment.