X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a701659da2e2b8cc5abca2c6c7c97832551627c0..d10b56e6f797878b7c76d69777f25907beb4cddd:/black.py?ds=sidebyside diff --git a/black.py b/black.py index 24ab660..ada9b0e 100644 --- a/black.py +++ b/black.py @@ -3491,6 +3491,9 @@ def gen_python_files_in_dir( # Then ignore with `exclude` option. try: normalized_path = "/" + child.resolve().relative_to(root).as_posix() + except OSError as e: + report.path_ignored(child, f"cannot be read because {e}") + continue except ValueError: if child.is_symlink(): report.path_ignored(