Skip to content

Commit

Permalink
❓ Provide error message for disabled conda engine
Browse files Browse the repository at this point in the history
We have not adapted the `CondaProject` to the new implementation yet,
so for now it is best to block its usage with a clear error message.
  • Loading branch information
mbercx committed May 11, 2023
1 parent 048deac commit 979cf91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aiida_project/commands/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ def create(
venv_path = config.aiida_venv_dir / Path(name)
project_path = config.aiida_project_dir / Path(name)

# Temporarily block `conda` engines until we provide support again
if engine is EngineType.conda:
print(
"[bold red]Error:[/bold red] The `conda` engine is currently disabled until we restore "
"support."
)
return

project = load_project_class(engine.value)(
name=name,
project_path=project_path,
Expand Down

0 comments on commit 979cf91

Please sign in to comment.