Skip to content

Commit

Permalink
Catch broader ClientOSError to handle "reset by peer"
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 17, 2023
1 parent 83ef298 commit 925041c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrisomatic/core/waitup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def run(self, emit: State) -> tuple[Outcome, float]:
f"bad status={res.status} (expected {self.good_status})"
)
return Outcome.FAILED, elapsed_time
except aiohttp.ClientConnectorError:
except aiohttp.ClientOSError:
await asyncio.sleep(self.interval)
elapsed_time = time.monotonic() - start_time
emit.status = Text(
Expand Down

0 comments on commit 925041c

Please sign in to comment.