Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate snapd payload #838

Open
sergiusens opened this issue Sep 9, 2024 · 0 comments
Open

Validate snapd payload #838

sergiusens opened this issue Sep 9, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@sergiusens
Copy link
Collaborator

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
@sergiusens sergiusens added the Enhancement New feature or request label Sep 9, 2024
@sergiusens sergiusens changed the title Validate snapd/store payload Validate snapd payload Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant