From b5c200f6c41f8bdf07ad43c3d6749b5577fe663a Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Tue, 5 Jun 2018 08:33:08 +0300 Subject: [PATCH] Fiat_converter: fstrings into use --- freqtrade/fiat_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/fiat_convert.py b/freqtrade/fiat_convert.py index 5a588c2d2..44a4f3054 100644 --- a/freqtrade/fiat_convert.py +++ b/freqtrade/fiat_convert.py @@ -119,7 +119,7 @@ class CryptoToFiatConverter(object): # Check if the fiat convertion you want is supported if not self._is_supported_fiat(fiat=fiat_symbol): - raise ValueError('The fiat {} is not supported.'.format(fiat_symbol)) + raise ValueError(f'The fiat {fiat_symbol} is not supported.') # Get the pair that interest us and return the price in fiat for pair in self._pairs: @@ -182,7 +182,7 @@ class CryptoToFiatConverter(object): """ # Check if the fiat convertion you want is supported if not self._is_supported_fiat(fiat=fiat_symbol): - raise ValueError('The fiat {} is not supported.'.format(fiat_symbol)) + raise ValueError(f'The fiat {fiat_symbol} is not supported.') # No need to convert if both crypto and fiat are the same if crypto_symbol == fiat_symbol: