From 893d507061dd3ea4845030c74973a88914a359c0 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 12 May 2025 15:14:24 +0100 Subject: [PATCH] Fix installing the default runtime from a script with no shebang. Fixes #90 --- src/manage/install_command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/manage/install_command.py b/src/manage/install_command.py index 5dea298..2f93d46 100644 --- a/src/manage/install_command.py +++ b/src/manage/install_command.py @@ -625,7 +625,10 @@ def execute(cmd): 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 if spec: cmd.tags.append(tag_or_range(spec)) else: