[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-04-20 18:23:03 +00:00
parent 715d0ca9d0
commit 12971a37e1
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ def get_user() -> Optional[str]:
try:
# In some exotic environments, getpass may not be importable.
import getpass
return getpass.getuser()
except (ImportError, KeyError):
return None