From: Guido van Rossum Date: Thu, 26 Dec 1991 13:05:43 +0000 (+0000) Subject: Use AttributeError. X-Git-Tag: v0.9.8~655 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=470e7617a999b4ed1ac0118798a07fe7a5ff883c;p=thirdparty%2FPython%2Fcpython.git Use AttributeError. --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 7c13458b941b..9a2ccb0728ea 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -95,7 +95,7 @@ def isdir(path): def islink(path): try: st = posix.lstat(path) - except (posix.error, NameError): + except (posix.error, AttributeError): return 0 return stat.S_ISLNK(st[stat.ST_MODE])