workflows: fix import on missing button label (#3215)
This commit is contained in:
parent
c28ab38609
commit
c5ca23d118
|
@ -860,7 +860,7 @@ class CommentableWorkflowStatusItem(WorkflowStatusItem):
|
|||
raise AssertionError('unknown type for button_label (%r)' % self.button_label)
|
||||
|
||||
def button_label_init_with_xml(self, element, charset):
|
||||
if element is None:
|
||||
if element is None or element.text is None:
|
||||
return
|
||||
self.button_label = element.text.encode(charset)
|
||||
|
||||
|
|
Loading…
Reference in New Issue