mirror of https://github.com/python/cpython
now uses the right exception type
This commit is contained in:
parent
530df33eac
commit
3b34dd871a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue