From 4b6ecab21d2d7cd34d0326adf0cc1282d6276b6e Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Fri, 19 Jun 2026 20:55:09 +1000 Subject: [PATCH] check if package exists --- neb/src/install.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neb/src/install.py b/neb/src/install.py index f436c71..5f26c69 100644 --- a/neb/src/install.py +++ b/neb/src/install.py @@ -2,6 +2,7 @@ from .console import print_error_message from .util import ensure_libs_env, comet_dir, get_package_index import os +import sys def install(args): @@ -22,4 +23,10 @@ def install(args): return index = get_package_index() + + package = index.get(name, None) + if package == None: + print_error_message(f"No package was found with the name \"{name}\"") + sys.exit(1) + print(index) \ No newline at end of file