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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user