Skip to content

Commit

Permalink
Directly wrap LTXError with SUTError
Browse files Browse the repository at this point in the history
  • Loading branch information
acerv committed Jun 29, 2023
1 parent 0ee1f71 commit 511a79b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libkirk/ltx_sut.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ async def _send_request(self, requests: list) -> dict:
"""
replies = await self._ltx.gather(requests)

try:
if self._ltx.exception():
raise self._ltx.exception()
except LTXError as err:
raise SUTError(err)
if self._ltx.exception():
raise SUTError(self._ltx.exception())

return replies

Expand Down

0 comments on commit 511a79b

Please sign in to comment.