Skip to content

Commit

Permalink
fix error type
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Jul 10, 2024
1 parent ebdfdc7 commit 93afaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/data/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ 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 ValueError: # FIXME:
except KeyError:
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 93afaf5

Please sign in to comment.