diff --git a/pex/hashing.py b/pex/hashing.py index 7ad25ecde..76bd29363 100644 --- a/pex/hashing.py +++ b/pex/hashing.py @@ -216,7 +216,7 @@ def iter_files(): for file_path in file_paths: try: file_hash(file_path, digest) - except FileNotFoundError: + except OSError: print(">>> FNF:", file_path, file=sys.stderr) islink = os.path.islink(file_path) print("... islink?:", islink, file=sys.stderr)