Skip to content

Commit

Permalink
sq
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse committed Dec 4, 2024
1 parent eca7d56 commit 0cc5e8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/host_tools/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ def __init__(self, netns, ssh_key: Path, host, user, *, on_error=None):
# _init_connection loops until it can connect to the guest
# dumping debug state on every iteration is not useful or wanted, so
# only dump it once if _all_ iterations fail.
self._init_connection()
try:
self._init_connection()
except Exception as exc:
if on_error:
on_error(exc)

raise

self._on_error = on_error

Expand Down

0 comments on commit 0cc5e8c

Please sign in to comment.