mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
now uses the right exception type
This commit is contained in:
parent
530df33eac
commit
3b34dd871a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue