commit de461a335875fc6ab04dd8fba9b38302566f763d
parent 5d816ca0653d775b65c7765e149507dd910cb0de
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Wed, 22 Nov 2017 11:18:34 +0100
catching timeout exception
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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