Skip to content

Commit 709fb67

Browse files
pontemontiCopilot
andauthored
Update generate_dependency_diagram.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f7c94d7 commit 709fb67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

generate_dependency_diagram.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def main():
168168
continue
169169

170170
pyproject_data = read_pyproject_toml(pyproject_path)
171+
if 'project' not in pyproject_data or 'name' not in pyproject_data['project']:
172+
print(f"Warning: {pyproject_path} is missing project.name field")
173+
continue
171174
pkg_name = pyproject_data['project']['name']
172175
all_package_names.add(pkg_name)
173176

0 commit comments

Comments
 (0)