mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
check and fix formating code with ruff
This commit is contained in:
parent
c537c43dd0
commit
a72587576e
|
@ -116,7 +116,8 @@ class IFreqaiModel(ABC):
|
|||
|
||||
record_params(config, self.full_path)
|
||||
|
||||
self.new_feature_selector = self.config.get('freqai', {}).get('warn_exceptions_on_backtest_only', False)
|
||||
self.new_feature_selector = self.config.get('freqai', {}) \
|
||||
.get('warn_exceptions_on_backtest_only', False)
|
||||
|
||||
def __getstate__(self):
|
||||
"""
|
||||
|
@ -359,7 +360,8 @@ class IFreqaiModel(ABC):
|
|||
|
||||
if self.new_feature_selector:
|
||||
logger.warning(
|
||||
"Train failed. Try to train on next pair." if self.new_feature_selector else
|
||||
"Train failed. Try to train on next pair." \
|
||||
if self.new_feature_selector else
|
||||
"Train failed. Raise error, fix data issue and try again."
|
||||
)
|
||||
self.tb_logger.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user