1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 21:28:42 +02:00

Merge branch 'fix_369_crash_at_req_issues' of https://github.com/lethliel/osc

Only include a tag if it "has" text in get_request_issues. Note
that the code in get_formatted_issues always assumes the presence
of the "label" tag.

Fixes: #369 ("crash trying to view diff of a request")
This commit is contained in:
Marcus Huewe
2018-01-22 14:46:21 +01:00

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