Skip to content

Commit c943d7c

Browse files
fix key error
1 parent ea37e5b commit c943d7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

t4_devkit/sanity/reference/ref301.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def check(self, context: SanityContext) -> list[Reason] | None:
4343
(
4444
record.get("info_filename", ""),
4545
PointCloudMetainfo.from_file(
46-
data_root.joinpath(record.get("info_filename", ""))
46+
data_root.joinpath(record.get("info_filename"))
4747
).source_tokens,
4848
)
4949
for record in records
50-
if data_root.joinpath(record.get("info_filename", "")).exists()
50+
if record.get("info_filename") and data_root.joinpath(record.get("info_filename")).exists()
5151
and record.get("fileformat") in {FileFormat.PCD, FileFormat.PCDBIN}
5252
)
5353

0 commit comments

Comments
 (0)