[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8514fab409
commit
ac9b65d890
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue