1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-15 08:46:56 +08:00

Fix log object bug (#977)

This commit is contained in:
you-n-g
2022-03-14 17:33:13 +08:00
committed by GitHub
parent 776b0c5bb4
commit 2681c61c60
3 changed files with 7 additions and 4 deletions

View File

@@ -96,11 +96,12 @@ class RecordTemp:
"""
try:
return self.recorder.load_object(self.get_path(name))
except LoadObjectError:
except LoadObjectError as e:
if parents:
if self.depend_cls is not None:
with class_casting(self, self.depend_cls):
return self.load(name, parents=True)
raise e
def list(self):
"""