Skip to content
Snippets Groups Projects
Commit 4b01a966 authored by Zhang, Zhichao's avatar Zhang, Zhichao
Browse files

edit error message"

parent f2a3f86c
Branches
No related tags found
No related merge requests found
......@@ -57,9 +57,9 @@ def create_instance(root, key):
obj = video_data_parse(obj, root[key])
# print(obj.__class__)
else:
raise TypeError('类型错误1')
raise TypeError(f"Error Dataset Type: {root[key].attrs['kkn_DATASET_SUBCLASS']}")
else:
raise TypeError('类型错误2')
raise TypeError(f"Error Class Type: {root[key].attrs['kkn_CLASS']}")
for k, v in root[key].attrs.items():
obj.attrs[k] = v
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment