Merge pull request #4 from jwilk-forks/userid

Don't require userid to be set
This commit is contained in:
Dan Lenski 2019-06-03 14:57:55 -07:00 committed by GitHub
commit ac1bf3187a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def main():
tags = (['minor'] if 'minor' in rev else []) + [tag.encode('utf8') for tag in rev['tags']]
ts = time.mktime(rev['timestamp'])
if rev['userid']:
if rev.get('userid'):
committer = '%s <%s@%s>' % (user,user_,host)
else:
committer = '%s <>' % user