Skip to content

Commit c3173a3

Browse files
committed
mypy fixes
1 parent adbe393 commit c3173a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/zenml/integrations/modal/step_operators/modal_step_operator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ def launch(
131131
zc = Client()
132132
stack = zc.active_stack
133133

134+
if not stack.container_registry:
135+
raise ValueError(
136+
"No Container registry found in the stack. "
137+
"Please add a container registry and ensure "
138+
"it is correctly configured."
139+
)
140+
134141
if docker_creds := stack.container_registry.credentials:
135142
docker_username, docker_password = docker_creds
136143
else:

0 commit comments

Comments
 (0)