From ca80aed5930a6a9245acef5069c511cb086e14e6 Mon Sep 17 00:00:00 2001 From: Vladimir Druzhinin <128374224+StateOf-Vlado@users.noreply.github.com> Date: Thu, 26 Oct 2023 12:57:06 +0200 Subject: [PATCH] chore: Detach and close AUT on Attach Error added (#214) --- driver/aut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/aut.py b/driver/aut.py index b51bab3..9571fc0 100644 --- a/driver/aut.py +++ b/driver/aut.py @@ -104,8 +104,8 @@ class AUT: return self except AssertionError as err: _logger.debug(err) + self.detach().stop() if attempt: - self.detach().stop() return self.launch(attempt-1) else: raise err