Skip to content

Commit

Permalink
handle ForbiddenException when atexit release (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe authored Nov 30, 2022
1 parent 79227f9 commit 4c2bda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stf_appium_client/StfClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _exit():
if device.get('owner') == "me":
self.logger.info(f"exit:Release device {device.get('serial')}")
self.release(device)
except AssertionError as error:
except (AssertionError, ForbiddenException) as error:
self.logger.error(f'releasing fails: {error}')

return device
Expand Down

0 comments on commit 4c2bda8

Please sign in to comment.