From 013954c2659db71f9d9e3ad00ea5b8f4d20dd698 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Sun, 25 Jul 2010 15:26:03 -0700 Subject: [PATCH] fileutil: change WindowsError to OSError in abspath_expanduser_unicode, because WindowsError might not exist. --- src/allmydata/util/fileutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index a6b59bc8..5a5179c1 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -295,7 +295,7 @@ def abspath_expanduser_unicode(path): # e.g. "\\". See . try: path = _getfullpathname(path or u".") - except WindowsError: + except OSError: pass if not os.path.isabs(path): -- 2.45.2