Skip to content

Commit 60dba99

Browse files
committed
Add comments.
1 parent 20cfc58 commit 60dba99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/py/kaleido/kaleido.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async def _render_task(
331331
spec["data"],
332332
spec["format"], # should just take spec
333333
)
334-
full_path.touch()
334+
full_path.touch() # claim our name
335335

336336
tab = await self._get_kaleido_tab()
337337

@@ -350,7 +350,7 @@ async def _render_task(
350350
return img_bytes
351351
except:
352352
if _write:
353-
full_path.unlink()
353+
full_path.unlink() # failure, no write
354354
raise
355355
finally:
356356
await self._return_kaleido_tab(tab)

0 commit comments

Comments
 (0)