Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrecamilleri committed Sep 18, 2024
1 parent 0e60e0b commit eefda7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frictionless/formats/excel/parsers/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def read_loader(self):
target = tempfile.NamedTemporaryFile(delete=delete)
shutil.copyfileobj(loader.byte_stream, target)
target.seek(0)
if not target.delete:

if not delete:
control.workbook_cache[path] = target.name # type: ignore
atexit.register(os.remove, target.name)
# TODO: rebase on using resource without system?
Expand Down

0 comments on commit eefda7a

Please sign in to comment.