Skip to content

Commit

Permalink
Fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Sep 22, 2023
1 parent 4b6e82d commit 892a43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reportportal_client/core/rp_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def json(self) -> Any:
if self.__json is NOT_SET:
try:
self.__json = self._resp.json()
except JSONDecodeError:
except (JSONDecodeError, TypeError):
self.__json = None
return self.__json

Expand Down Expand Up @@ -122,7 +122,7 @@ async def json(self) -> Any:
if self.__json is NOT_SET:
try:
self.__json = await self._resp.json()
except JSONDecodeError:
except (JSONDecodeError, TypeError):
self.__json = None
return self.__json

Expand Down

0 comments on commit 892a43a

Please sign in to comment.