Skip to content

Commit

Permalink
Revert part of b0a0ea7 (bug 1144417) since th-client isn't using requ…
Browse files Browse the repository at this point in the history
…ests

Since the switch to requests has been backed out (437a3c3), we also need
to undo the service-side change that was made separately to support it.
  • Loading branch information
Ed Morley committed May 3, 2015
1 parent efa98c7 commit c9f837f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treeherder/etl/th_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def post_treeherder_collections(th_collections):
th_request.get_uri(th_collections[project].endpoint_base)))
response = th_request.post(th_collections[project])

if not response or response.status_code != 200:
if not response or response.status != 200:
errors.append({
"project": project,
"url": th_collections[project].endpoint_base,
"message": response.content
"message": response.read()
})
if errors:
raise CollectionNotLoadedException(errors)
Expand Down

0 comments on commit c9f837f

Please sign in to comment.