Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/dt_shell/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,12 @@ def configure(self, readonly: bool = False) -> bool:
def update_command_descriptions(self, commands_path: str) -> None:
command_descriptions_path = commands_path + "/command_descriptions.yaml"
if not os.path.exists(command_descriptions_path):
logger.warning(f"File '{command_descriptions_path}' does not exist.")
# Only warn if the command set directory exists but the descriptions file is missing
# During auto-profile creation, the entire command set directory may not exist yet
if os.path.exists(commands_path):
logger.warning(f"File '{command_descriptions_path}' does not exist.")
else:
logger.debug(f"Command set directory '{commands_path}' does not exist yet, skipping command descriptions update.")
return
with open(command_descriptions_path) as stream:
self.command_descriptions.update(yaml.safe_load(stream))