[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:15:48 +00:00
parent 8514fab409
commit ac9b65d890
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