Merge ~andrey-fedoseev/launchpad:snap-base-features into launchpad:master
Proposed by
Andrey Fedoseev
Status: | Merged |
---|---|
Approved by: | Andrey Fedoseev |
Approved revision: | ccca464284b404717036632ad5e003ac6d3b50b9 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~andrey-fedoseev/launchpad:snap-base-features |
Merge into: | launchpad:master |
Diff against target: |
37 lines (+8/-1) 2 files modified
lib/lp/snappy/model/snapbase.py (+3/-1) lib/lp/snappy/tests/test_snapbase.py (+5/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+431181@code.launchpad.net |
Commit message
Fix the case when `SnapBase.feature` is `None`
To post a comment you must log in.
I do not know what a SnapBase is, and the docstring for ISnapBase isn't helpful at all ("A base for snaps."), but I still wonder whether we could initialize `features` as an empty dict, so we could save us those `is None` checks.