ensure the topic is set to a valid default string
If a topic is not set, the field is not present in the change and we get None instead of an empty string. That causes a failure later when we try to join the value together with other strings. Change-Id: Id472afa00aa21b55046aea87f90c1f02fd614744 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
4c5dc6bd80
commit
4e8975a651
@ -152,7 +152,7 @@ def all_changes():
|
||||
|
||||
|
||||
def get_one_status(change, delegates):
|
||||
topic = change.get('topic')
|
||||
topic = change.get('topic', 'unknown topic')
|
||||
subject = change.get('subject')
|
||||
owner = change.get('owner', {}).get('name')
|
||||
url = 'https://review.openstack.org/{}\n'.format(change['_number'])
|
||||
|
Loading…
Reference in New Issue
Block a user