roscreate: potential workaround for author_name() on test system

This commit is contained in:
Ken Conley 2012-01-06 03:36:07 +00:00
parent 9de93d0764
commit e1cb9e5235
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ def author_name():
login = name
name = pwd.getpwnam(login)[4]
name = ''.join(name.split(',')) # strip commas
# in case pwnam is not set
if not name:
name = login
except:
#pwd failed
pass