Skip to content

Commit 30185f5

Browse files
committed
fix: find test
1 parent 9d837f9 commit 30185f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openvariant/find_files/find_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def _scan_files(base_path: str, annotation: Annotation, fix: bool, skip_files: b
5454
raise PermissionError(f"Permission denied on {file_path}")
5555
else:
5656
if skip_files:
57-
warnings.warn(f"Unable to open {base_path}, it's not a file nor a directory.", UserWarning)
57+
warnings.warn(f"Unable to open {base_path}, it is neither a file nor a directory, or it does not exist.", UserWarning)
5858
else:
59-
raise PermissionError(f"Unable to open {base_path}, it's not a file nor a directory.")
59+
raise FileNotFoundError(f"Unable to open {base_path}, it is neither a file nor a directory, or it does not exist.")
6060

6161

6262

0 commit comments

Comments
 (0)