chore: Detach and close AUT on Attach Error added (#214)

This commit is contained in:
Vladimir Druzhinin 2023-10-26 12:57:06 +02:00 committed by GitHub
parent 1b064830a5
commit ca80aed593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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