fix: handle missing grid directory

This commit is contained in:
aclist committed 2026-10-23 11:35:13 +09:00
1 parent c2cfe2b4d9
commit 019847dcf9
1 file changed
+1
+1
View File
@@ -111,6 +111,7 @@ class Shortcuts:
for img in ("_hero", "p", "_logo"):
filename = str(self.bpid) + img
dest = grid_path.joinpath(filename).with_suffix(".png")
make_parents(dest)
b = images.joinpath(img).with_suffix(".png").read_bytes()
dest.write_bytes(b)