Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/manage/install_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,10 @@
if cmd.from_script:
# Have already checked that we are not using --by-id
from .scriptutils import find_install_from_script
spec = find_install_from_script(cmd, cmd.from_script)
try:
spec = find_install_from_script(cmd, cmd.from_script)
except LookupError:
spec = None

Check warning on line 631 in src/manage/install_command.py

View check run for this annotation

Codecov / codecov/patch

src/manage/install_command.py#L628-L631

Added lines #L628 - L631 were not covered by tests
if spec:
cmd.tags.append(tag_or_range(spec))
else:
Expand Down