Skip to content
Snippets Groups Projects
Commit c54ecfc3 authored by Vadim Gelfer's avatar Vadim Gelfer
Browse files

util.getuser: raise exception if win32api not available.

parent 8796d999
No related merge requests found
......@@ -517,7 +517,8 @@
try:
return getpass.getuser()
except ImportError:
return getuser_fallback and getuser_fallback()
if getuser_fallback:
return getuser_fallback()
raise util.Abort(_('user name not available - set USERNAME '
'environment variable'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment