1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

only assign issue detail if text for tag exists

This commit is contained in:
Marco Strigl 2018-01-22 11:00:40 +01:00
parent 0b241a9586
commit 5b3d8633fa

View File

@ -4843,7 +4843,8 @@ def get_request_issues(apiurl, reqid):
for cissue in collection:
issue = {}
for issue_detail in cissue.iter():
issue[issue_detail.tag] = issue_detail.text.strip()
if issue_detail.text:
issue[issue_detail.tag] = issue_detail.text.strip()
issue_list.append(issue)
return issue_list