Skip to content

Commit aee5e28

Browse files
committed
[Tdt] Raise error in case no valid tdt structure was found
1 parent 33b05b6 commit aee5e28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neo/rawio/tdtrawio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def _parse_header(self):
8787
elif is_tdtblock(self.dirname.parent):
8888
segment_names.append(str(self.dirname.stem))
8989
tankname = None
90+
else:
91+
raise ValueError(f'{self.dirname} is not a valid tdt structure. Make sure all files '
92+
f'required for a tdt block are present.')
9093

9194
nb_segment = len(segment_names)
9295
if nb_segment == 0:

0 commit comments

Comments
 (0)