Closed XuehaiPan closed 1 month ago
Move the getuser() function under a contextlib.suppress(ImportError, OSError) context.
getuser()
contextlib.suppress(ImportError, OSError)
Resolves #129
cc @landgraf @quarckster
This would also resolve an incoming change of the exception type in the Python upstream in Python 3.13.
Issue Type
Description
Move the
getuser()
function under acontextlib.suppress(ImportError, OSError)
context.Motivation and Context
Resolves #129
129
cc @landgraf @quarckster
This would also resolve an incoming change of the exception type in the Python upstream in Python 3.13.