summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-10-03 14:52:33 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-10-03 14:52:33 (GMT)
commit3b34dd871a3d17aa382d4ca22488671afe0c4c03 (patch)
tree86ac2cfbf0eda27dd5a8803cc7542881b4f495b7
parent530df33eac1307dffadf729a828bea72c32e6031 (diff)
downloadcpython-3b34dd871a3d17aa382d4ca22488671afe0c4c03.zip
cpython-3b34dd871a3d17aa382d4ca22488671afe0c4c03.tar.gz
cpython-3b34dd871a3d17aa382d4ca22488671afe0c4c03.tar.bz2
now uses the right exception type
-rw-r--r--Lib/distutils/archive_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py
index 4ace7bd..bc5edfd 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):