mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 04:02:11 +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:
|
for cissue in collection:
|
||||||
issue = {}
|
issue = {}
|
||||||
for issue_detail in cissue.iter():
|
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)
|
issue_list.append(issue)
|
||||||
return issue_list
|
return issue_list
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user