1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 01:36:16 +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
commit 8cb0246c10

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