Skip to content

Commit 8c7ff77

Browse files
committed
raise error if format is not linked to any IO
1 parent be8e92a commit 8c7ff77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def list_candidate_ios(file_or_folder, ignore_suffix=['ini']):
431431
if file_or_folder.is_file():
432432
suffix = file_or_folder.suffix[1:].lower()
433433
if suffix not in io_by_extension:
434-
print(f'{suffix} not found')
434+
raise ValueError(f'{suffix} is not a supported format of any IO.')
435435
return io_by_extension[suffix]
436436

437437
elif file_or_folder.is_dir():

0 commit comments

Comments
 (0)