Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 9bbf96d

Browse files
committed
remove debug things from import
1 parent 72bd410 commit 9bbf96d

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/lattice/providers/skypilot.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,9 @@
2222
# the default API server URL, not our custom one
2323
SKYPILOT_AVAILABLE = True
2424
except ImportError as e:
25-
sky = None
26-
sky_resources = None
27-
dag_utils = None
28-
payloads = None
29-
backend_utils = None
30-
sky_common = None
31-
server_common = None
32-
SKYPILOT_AVAILABLE = False
33-
SKYPILOT_IMPORT_ERROR = str(e)
34-
print(f"SkyPilot import error: {e}")
25+
raise ImportError(f"SkyPilot SDK is required. Install with: pip install skypilot")
3526
except Exception as e:
36-
# Catch other import errors (e.g., missing dependencies)
37-
sky = None
38-
sky_resources = None
39-
dag_utils = None
40-
payloads = None
41-
backend_utils = None
42-
sky_common = None
43-
server_common = None
44-
SKYPILOT_AVAILABLE = False
45-
SKYPILOT_IMPORT_ERROR = str(e)
27+
raise ImportError(f"SkyPilot SDK is required. Install with: pip install skypilot")
4628

4729
from .base import Provider
4830
from .models import (

0 commit comments

Comments
 (0)