From 04be438b352232b21377fe3c244fd66b0f2b7999 Mon Sep 17 00:00:00 2001 From: Stephen Dade Date: Wed, 17 Jan 2018 19:51:27 +1100 Subject: [PATCH] Better exception handling for check_handle_timedout --- freqtrade/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/main.py b/freqtrade/main.py index 796fa8515..01f3d6e16 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -131,7 +131,8 @@ def check_handle_timedout(timeoutvalue: int) -> None: for trade in Trade.query.filter(Trade.open_order_id.isnot(None)).all(): try: order = exchange.get_order(trade.open_order_id) - except OperationalException: + except requests.exceptions.RequestException: + logger.info('Cannot query order for %s due to %s', trade, traceback.format_exc()) continue ordertime = arrow.get(order['opened'])