From 07f858936918c225d3e6401fdc1728e55c1e34a1 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 7 Nov 2018 22:57:00 +0200 Subject: [PATCH] stat/fsutils_ext/windows: Handle invalid/non-junctions --- pupy/packages/windows/all/fsutils_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupy/packages/windows/all/fsutils_ext.py b/pupy/packages/windows/all/fsutils_ext.py index 56d581ef..e14a4fd9 100644 --- a/pupy/packages/windows/all/fsutils_ext.py +++ b/pupy/packages/windows/all/fsutils_ext.py @@ -25,7 +25,7 @@ def getfilesec(filepath): try: if islink(filepath): link = readlink(filepath) - except (WindowsError, OSError, IOError): + except (WindowsError, ValueError, OSError, IOError): pass mode = mode_to_letter(filestat.st_mode)