Skip to content

Commit 4029c61

Browse files
committed
Fix: exclude wildcard key from supported formats hint in error message
1 parent 1198bd9 commit 4029c61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monai/data/image_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence:
116116
except Exception: # other writer init errors indicating it exists
117117
avail_writers.append(_writer)
118118
if not avail_writers and error_if_not_found:
119-
_supported = ", ".join(sorted(SUPPORTED_WRITERS.keys()))
119+
_supported = ", ".join(sorted(k for k in SUPPORTED_WRITERS.keys() if k != "*"))
120120
raise OptionalImportError(
121121
f"No ImageWriter backend found for {fmt}. "
122122
f"Supported formats: {_supported}. "

0 commit comments

Comments
 (0)