now uses the right exception type

This commit is contained in:
Tarek Ziadé 2009-10-03 14:52:33 +00:00
parent 530df33eac
commit 3b34dd871a

View file

@ -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):