Merge lp://staging/~jibel/ubuntu/bionic/apport/lp1582950_2_ubiquity_hook into lp://staging/~ubuntu-core-dev/ubuntu/bionic/apport/ubuntu

Proposed by Jean-Baptiste Lallement
Status: Merged
Approved by: Brian Murray
Approved revision: 2604
Merged at revision: 2606
Proposed branch: lp://staging/~jibel/ubuntu/bionic/apport/lp1582950_2_ubiquity_hook
Merge into: lp://staging/~ubuntu-core-dev/ubuntu/bionic/apport/ubuntu
Diff against target: 25 lines (+7/-1)
1 file modified
data/package-hooks/source_ubiquity.py (+7/-1)
To merge this branch: bzr merge lp://staging/~jibel/ubuntu/bionic/apport/lp1582950_2_ubiquity_hook
Reviewer Review Type Date Requested Status
Brian Murray Needs Fixing
Ubuntu Core Development Team Pending
Review via email: mp+336474@code.staging.launchpad.net

Description of the change

source_ubiquity.py: Convert attachments to string when it is necessary.

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for working on this. I believe isinstance() is preferred to using type().

https://docs.python.org/3/library/functions.html#type

Did you test this with both scenarios outlined in the bug?

review: Needs Fixing
2604. By Jean-Baptiste Lallement

source_ubiquity.py: Use isinstance() instead of type()

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your review.

I changed the code to use isinstance()

I tested on bionic on a live session and an installed system as user and as root with sudo and the hook did not crash while it is crashing without the patch.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches