Skip to content

Commit

Permalink
Handle missing elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Dec 29, 2020
1 parent dcb92e4 commit b6de231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pomace/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def _perform_action(self, function: Callable, *args, **kwargs) -> bool:
delay = kwargs.pop("delay", None)
try:
function(*args, **kwargs)
except ElementDoesNotExist as e:
log.warn(e)
return False
except WebDriverException as e:
log.debug(e)
return False
Expand Down

0 comments on commit b6de231

Please sign in to comment.