Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERMD committed Nov 14, 2016
1 parent ead4fc6 commit d22ec1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python/tmclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,9 @@ def _download_channel_image(self, channel_name, plate_name,
),
params
)
response = self.session.get(url)
self._handle_error(response)
return response
res = self.session.get(url)
res.raise_for_status()
return res

def download_channel_image(self, channel_name, plate_name,
well_name, well_pos_y, well_pos_x,
Expand Down Expand Up @@ -935,7 +935,7 @@ def _download_segmentation_image(self, object_type, plate_name,
params
)
response = self.session.get(url)
self._handle_error(response)
response.raise_for_status()
return response

def download_segmentation_image(self, object_type,
Expand Down

0 comments on commit d22ec1e

Please sign in to comment.