From 20af4bae7cbd41e6b6cdd1d9f3aab946c4baa559 Mon Sep 17 00:00:00 2001 From: gcarq Date: Mon, 23 Apr 2018 16:56:35 +0200 Subject: [PATCH] retrier: raise initial exception instead of OperationalException --- freqtrade/exchange/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index eb2d324c5..c10dc8576 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -41,7 +41,8 @@ def retrier(f): logger.warning('retrying %s() still for %s times', f.__name__, count) return wrapper(*args, **kwargs) else: - raise OperationalException('Giving up retrying: %s()', f.__name__) + logger.warning('Giving up retrying: %s()', f.__name__) + raise ex return wrapper