Skip to content

Commit 6c9c709

Browse files
committed
chore: use fstring in strategy helper
1 parent 1c2ffc6 commit 6c9c709

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

freqtrade/resolvers/strategy_resolver.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def load_strategy(config: Config | None = None) -> IStrategy:
8787
# Loop this list again to have output combined
8888
for attribute, _ in attributes:
8989
if attribute in config:
90-
logger.info("Strategy using %s: %s", attribute, config[attribute])
90+
logger.info(f"Strategy using {attribute}: {config[attribute]}")
9191

9292
StrategyResolver._normalize_attributes(strategy)
9393

@@ -109,9 +109,7 @@ def _override_attribute_helper(strategy, config: Config, attribute: str, default
109109
# Ensure Properties are not overwritten
110110
setattr(strategy, attribute, config[attribute])
111111
logger.info(
112-
"Override strategy '%s' with value in config file: %s.",
113-
attribute,
114-
config[attribute],
112+
f"Override strategy '{attribute}' with value in config file: {config[attribute]}.",
115113
)
116114
elif hasattr(strategy, attribute):
117115
val = getattr(strategy, attribute)

0 commit comments

Comments
 (0)