From 58939a2daf0701df8e82f9f98982018e49a49760 Mon Sep 17 00:00:00 2001 From: Linlang Date: Wed, 10 Jul 2024 10:47:51 +0800 Subject: [PATCH] fix pylint error --- qlib/data/dataset/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qlib/data/dataset/loader.py b/qlib/data/dataset/loader.py index 02ae019cd2..2f32cd4d30 100644 --- a/qlib/data/dataset/loader.py +++ b/qlib/data/dataset/loader.py @@ -323,8 +323,8 @@ def load(self, instruments=None, start_time=None, end_time=None) -> pd.DataFrame for dl in self.data_loader_l: try: df_current = dl.load(instruments, start_time, end_time) - except: - df_current = dl.load(start_time, end_time) + except ValueError: + df_current = dl.load(instruments=None, start_time=start_time, end_time=end_time) warnings.warn( "If the value of `instruments` cannot be processed, it will set instruments to None to get all the data." )