Skip to content

Commit 85cdad0

Browse files
committed
Handle OSError when getting default author prompt in wizard.
1 parent 68ec5d6 commit 85cdad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo_helper/cli/commands/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def wizard() -> None:
102102
"GIT_AUTHOR_NAME",
103103
default=os.getenv("GIT_COMMITTER_NAME", default=getpass_user),
104104
)
105-
except ImportError:
105+
except (ImportError, OSError):
106106
# Usually USERNAME is not set when trying getpass.getuser()
107107
default_author = ''
108108

0 commit comments

Comments
 (0)