Update strings to f-strings

This commit is contained in:
hroff-1902 2020-02-20 08:19:22 +03:00
parent bca5f804a8
commit 56a06cbd33

View File

@ -26,7 +26,7 @@ class Worker:
""" """
Init all variables and objects the bot needs to work Init all variables and objects the bot needs to work
""" """
logger.info('Starting worker %s', __version__) logger.info(f"Starting worker {__version__}")
self._args = args self._args = args
self._config = config self._config = config
@ -77,7 +77,7 @@ class Worker:
if state != old_state: if state != old_state:
self.freqtrade.notify_status(f'{state.name.lower()}') self.freqtrade.notify_status(f'{state.name.lower()}')
logger.info('Changing state to: %s', state.name) logger.info(f"Changing state to: {state.name}")
if state == State.RUNNING: if state == State.RUNNING:
self.freqtrade.startup() self.freqtrade.startup()