From fe07052551fb4550b4b56daabe0477ea8bd1d789 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 14 Oct 2024 12:34:23 -0700 Subject: [PATCH] Make debug even more Python 2.7 compatible. --- pex/hashing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)