← Back to issue list

Validate snapd payload

View original Github issue

Metadata

Project
craft-parts
Number
#838
Type
issue
State
open
Author
sergiusens
Labels
Created
2024-09-09 13:24:11+00:00
Updated
2025-03-11 14:28:53+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done We need to validate the snapd API return payload in craft_parts/packages/snaps.py ### Why it needs to get done This will allow us to gracefully handle errors such as ``` File "/snap/snapcraft/12504/lib/python3.10/site-packages/snapcraft_legacy/internal/repo/snaps.py", line 295, in install_snaps snap_pkg_channel = snap_info["channel"] TypeError: 'NoneType' object is not subscriptable ```

Evaluation history

No evaluation history available.