From 96b2210c0fb1946a16456f084576005d3cefa0e8 Mon Sep 17 00:00:00 2001 From: Gerald Lonlas Date: Fri, 30 Mar 2018 12:11:06 -0700 Subject: [PATCH] Change deprecated logger.warn by warning --- freqtrade/exchange/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 908820466..2c4136cab 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -30,11 +30,11 @@ def retrier(f): return f(*args, **kwargs) # TODO dont be a gotta-catch-them-all pokemon collector except Exception as ex: - logger.warn('%s returned exception: "%s"', f, ex) + logger.warning('%s returned exception: "%s"', f, ex) if count > 0: count -= 1 kwargs.update({'count': count}) - logger.warn('retrying %s still for %s times', f, count) + logger.warning('retrying %s still for %s times', f, count) return wrapper(*args, **kwargs) else: raise OperationalException('Giving up retrying: %s', f)