diff --git a/wp2git/wp2git.py b/wp2git/wp2git.py index 1f9b1d3..f400c95 100755 --- a/wp2git/wp2git.py +++ b/wp2git/wp2git.py @@ -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