Skip to content

Commit aca433d

Browse files
authored
Fix update_default_project() crash on server without TTY (#3797)
Fixes: #3796
1 parent f18939d commit aca433d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dstack/_internal/core/services/configs/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def update_default_project(project_name: str, url: str, token: str, yes: bool, n
100100
default_project is None
101101
or yes
102102
or confirm_ask(
103-
f"Update the [code]{project_name}[/] project in [code]{config_dir}[/]?"
103+
f"Update the [code]{project_name}[/] project in [code]{config_dir}[/]?",
104+
default=False,
104105
)
105106
)
106107
if not no

0 commit comments

Comments
 (0)