Merge "Fix exception in change list when change owner has no name"

This commit is contained in:
Jenkins 2014-09-10 15:36:46 +00:00 committed by Gerrit Code Review
commit 6e9c315f6e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class ChangeRow(urwid.Button):
self.subject.set_text(change.subject)
self.number.set_text(str(change.number))
self.project.set_text(change.project.name.split('/')[-1])
if change.owner:
if change.owner and change.owner.name:
self.owner.set_text(change.owner.name)
else:
self.owner.set_text(u'')