Fix exception in change list when change owner has no name
If a change owner has no name configured, attempting to view the list of changes causes gertty to fail with: urwid.util.TagMarkupException: Invalid markup element: None Change-Id: Idc0d13f4dfce45e29618c4abda7d6a70fc091e98
This commit is contained in:
parent
3f32c7d301
commit
b7151dd582
@ -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'')
|
||||
|
Loading…
x
Reference in New Issue
Block a user