Skip to content

Show uid if usrname is unknown - #82

Open
jennydaman wants to merge 1 commit into
freesurfer:masterfrom
jennydaman:fallback-getuser
Open

Show uid if usrname is unknown#82
jennydaman wants to merge 1 commit into
freesurfer:masterfrom
jennydaman:fallback-getuser

Conversation

@jennydaman

Copy link
Copy Markdown

This PR adds faillback behavior which shows the user's UID if their username is unknown.

The code getpass.getuser() can fail when the username is not known. This happens in secure, underprivileged environments e.g. OpenShift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant