[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
715d0ca9d0
commit
12971a37e1
|
@ -161,6 +161,7 @@ def get_user() -> Optional[str]:
|
||||||
try:
|
try:
|
||||||
# In some exotic environments, getpass may not be importable.
|
# In some exotic environments, getpass may not be importable.
|
||||||
import getpass
|
import getpass
|
||||||
|
|
||||||
return getpass.getuser()
|
return getpass.getuser()
|
||||||
except (ImportError, KeyError):
|
except (ImportError, KeyError):
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue