diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-03 14:52:33 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-03 14:52:33 +0000 |
commit | 3b34dd871a3d17aa382d4ca22488671afe0c4c03 (patch) | |
tree | 86ac2cfbf0eda27dd5a8803cc7542881b4f495b7 /Lib/distutils/archive_util.py | |
parent | 530df33eac1307dffadf729a828bea72c32e6031 (diff) | |
download | cpython-git-3b34dd871a3d17aa382d4ca22488671afe0c4c03.tar.gz |
now uses the right exception type
Diffstat (limited to 'Lib/distutils/archive_util.py')
-rw-r--r-- | Lib/distutils/archive_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |