Skip to content

Commit 34add60

Browse files
authored
Fix installing the default runtime from a script with no shebang. (#94)
Fixes #90
1 parent 78b92c8 commit 34add60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/manage/install_command.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,10 @@ def execute(cmd):
625625
if cmd.from_script:
626626
# Have already checked that we are not using --by-id
627627
from .scriptutils import find_install_from_script
628-
spec = find_install_from_script(cmd, cmd.from_script)
628+
try:
629+
spec = find_install_from_script(cmd, cmd.from_script)
630+
except LookupError:
631+
spec = None
629632
if spec:
630633
cmd.tags.append(tag_or_range(spec))
631634
else:

0 commit comments

Comments
 (0)