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:
parent
0b241a9586
commit
5b3d8633fa
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user