Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 14 additions & 4 deletions core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,11 @@ def _load_repo_device_types(self) -> dict:
if isinstance(data, dict) and "slug" in data:
key = (mfr_slug, data["slug"])
if key in result:
raise ValueError(f"Duplicate repo device-type key {key!r}: {seen_files[key]} and {yaml_file}")
self.handle.verbose_log(
f"[yellow]Duplicate repo device-type key {key!r}: "
f"{seen_files[key]} and {yaml_file} — keeping first[/yellow]"
)
continue
result[key] = data
seen_files[key] = yaml_file
return result
Expand All @@ -535,9 +539,11 @@ def _load_repo_module_types(self) -> dict:
if mfr_slug:
key = (mfr_slug, data["model"])
if key in result:
raise ValueError(
f"Duplicate repo module-type key {key!r}: {seen_files[key]} and {yaml_file}"
self.handle.verbose_log(
f"[yellow]Duplicate repo module-type key {key!r}: "
f"{seen_files[key]} and {yaml_file} — keeping first[/yellow]"
)
continue
result[key] = data
seen_files[key] = yaml_file
return result
Expand All @@ -559,7 +565,11 @@ def _load_repo_rack_types(self) -> dict:
if mfr_slug:
key = (mfr_slug, data["model"])
if key in result:
raise ValueError(f"Duplicate repo rack-type key {key!r}: {seen_files[key]} and {yaml_file}")
self.handle.verbose_log(
f"[yellow]Duplicate repo rack-type key {key!r}: "
f"{seen_files[key]} and {yaml_file} — keeping first[/yellow]"
)
continue
result[key] = data
seen_files[key] = yaml_file
return result
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.