From de461a335875fc6ab04dd8fba9b38302566f763d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 22 Nov 2017 11:18:34 +0100 Subject: catching timeout exception --- selenium/withdraw_buy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selenium') diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py index c886329ad..a7c36fe68 100755 --- a/selenium/withdraw_buy.py +++ b/selenium/withdraw_buy.py @@ -200,7 +200,7 @@ def register(ctx): try: ctx.wait.until(EC.element_to_be_clickable((By.ID, "select-exchange"))) - except NoSuchElementException: + except (NoSuchElementException, TimeoutException): logger.error("Selecting exchange impossible") return False return True -- cgit v1.2.3