Merge ~kissiel/checkbox-ng:fix-1853392-crash-on-reports into checkbox-ng:master
Proposed by
Maciej Kisielewski
Status: | Merged |
---|---|
Approved by: | Maciej Kisielewski |
Approved revision: | 93f805847b40386580bdacd1cbe13d3d682ca04f |
Merged at revision: | 423dde258fec42263d8137e179f59202004fa690 |
Proposed branch: | ~kissiel/checkbox-ng:fix-1853392-crash-on-reports |
Merge into: | checkbox-ng:master |
Diff against target: |
23 lines (+3/-2) 1 file modified
plainbox/impl/exporter/xlsx.py (+3/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Review via email:
|
Description of the change
xlsx: fix crash when resources were missing fields
Previously the xlsx exporter blindly accessed fields that may have not been there, due to - for instance - crash in the resource job or misformat of some information yielded by the resource job's binary. This patch uses .get()s on thosde dictionaries, so the worst case scenario is missing information in the report instead of a Checkbox crash.
Tested on good, broken, and sort-of-lacking resource jobs.
To post a comment you must log in.
LGTM, thx