Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion monai/transforms/io/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ def __call__(self, filename: Union[Sequence[PathLike], PathLike], reader: Option
break

if img is None or reader is None:
if isinstance(filename, tuple) and len(filename) == 1:
filename = filename[0]
raise RuntimeError(
f"can not find a suitable reader for file: {filename}.\n"
f"cannot find a suitable reader for file: {filename}.\n"
" Please install the reader libraries, see also the installation instructions:\n"
" https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies.\n"
f" The current registered: {self.readers}.\n"
Expand Down