Skip to content

Commit

Permalink
Added Portal.is_specified_type to portal_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jan 4, 2024
1 parent 1d143b4 commit 5882abc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def __getattr__(self, attr): # noqa
return getattr(self._response, attr)
def json(self): # noqa
return self._response.json
def raise_for_status(self): # noqa
if self.status_code < 200 or self.status_code > 399:
raise requests.exceptions.HTTPError(f"HTTP Error: {self.status_code}", response=self)
response = TestResponseWrapper(response)
return response

Expand Down

0 comments on commit 5882abc

Please sign in to comment.