diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index f58a195792..3b3e4ff071 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -193,7 +193,10 @@ def realpath(path): path = components[0] + colon for c in components[1:]: path = join(path, c) - path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname() + try: + path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname() + except Carbon.File.Error: + pass return path supports_unicode_filenames = False |