Skip to content

Commit

Permalink
Handle OSError when getting default author prompt in wizard.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Oct 9, 2024
1 parent 68ec5d6 commit 85cdad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo_helper/cli/commands/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def wizard() -> None:
"GIT_AUTHOR_NAME",
default=os.getenv("GIT_COMMITTER_NAME", default=getpass_user),
)
except ImportError:
except (ImportError, OSError):
# Usually USERNAME is not set when trying getpass.getuser()
default_author = ''

Expand Down

0 comments on commit 85cdad0

Please sign in to comment.