From: Tarek Ziadé Date: Sat, 3 Oct 2009 14:52:33 +0000 (+0000) Subject: now uses the right exception type X-Git-Tag: v2.7a1~425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b34dd871a3d17aa382d4ca22488671afe0c4c03;p=python now uses the right exception type --- diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py index 4ace7bdbf0..bc5edfd864 100644 --- a/Lib/distutils/archive_util.py +++ b/Lib/distutils/archive_util.py @@ -16,12 +16,12 @@ from distutils import log try: from pwd import getpwnam -except AttributeError: +except ImportError: getpwnam = None try: from grp import getgrnam -except AttributeError: +except ImportError: getgrnam = None def _get_gid(name):