Exceptions handling
Sometimes it’s useful to ignoring any exception that might be thrown by the condition function:
wait().ignore_exceptions().until(lambda: app.is_healthy())
It’s also possible to specify specific exceptions to ignore:
wait().ignore_exceptions(ZeroDevisionError, AttributeError).until(lambda: app.is_healthy())