Improve generic exception handler

This commit is contained in:
Matthias 2022-10-07 16:05:41 +02:00
parent a5bf34587a
commit d42fb15608

View File

@ -211,7 +211,8 @@ class IFreqaiModel(ABC):
new_trained_timerange, pair, strategy, dk, data_load_timerange
)
except Exception as msg:
logger.warning(f'Training {pair} raised exception {msg}, skipping.')
logger.warning(f"Training {pair} raised exception {msg.__class__.__name__}. "
f"Message: {msg}, skipping.")
self.train_timer('stop')