Skip to content

Commit 680318c

Browse files
Apply suggested fix to scripts/sync-docs.py from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 4cb0d52 commit 680318c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/sync-docs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ def copy_images(beman_repo_path: Path, website_repo_path: Path):
4949
target_directory = task["target"]
5050
print(f"Copying images from {beman_images_path} to {target_directory}")
5151

52+
if not beman_images_path.exists():
53+
raise FileNotFoundError(
54+
f"Source images directory does not exist: {beman_images_path}"
55+
)
56+
5257
# Remove the target_directory if it exists and create it again.
5358
if target_directory.exists():
5459
shutil.rmtree(target_directory)

0 commit comments

Comments
 (0)