mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01: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:
commit
8cb0246c10
@ -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…
Reference in New Issue
Block a user