lxd: Distingish FileNotFoundError if not installed
Metadata
Current evaluation
Merged a fix distinguishing FileNotFoundError from CalledProcessError when LXD is not installed, resolving bug 1703344. Approved by one reviewer and merged despite minor unresolved comments and feedback on test fixture complexity.
Suggested action: —
No scores available.
Issue body
If LXD is not installed the exception FileNotFoundError will be raised because the 'lxc' executable doesn't exist. The code currently only handles CalledProcessError.
Fixes: [bug 1703344](https://bugs.launchpad.net/snapcraft/+bug/1703344)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix distinguishing FileNotFoundError from CalledProcessError when LXD is not installed, resolving bug 1703344. Approved by one reviewer and merged despite minor unresolved comments and feedback on test fixture complexity. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to resolve bug 1703344 by catching FileNotFoundError when LXD is not installed. The update ensures missing lxc executables are properly handled instead of only catching CalledProcessError. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to fix bug 1703344 by catching FileNotFoundError when lxc is missing. The change improves error handling for uninstalled LXD. Maintainer noted minor test fixture concerns, but the fix was accepted and integrated. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1516 lxd: LXD not installed when using remote | snapcraft | merged | Merged fix for a bug where lxc installation was not correctly verified when using a LXD remote. Also corrected incomplete test scenario usage. Approved by two reviewers, modified two files. |