Skip to content

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Jul 10, 2024
1 parent 3bcc944 commit 58939a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlib/data/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 58939a2

Please sign in to comment.