Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Jan 21, 2025
1 parent 730dcb1 commit 7f0986d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ async def _() -> tuple[Callable[[], Coroutine[Any, Any, None]], Path]:
msg = f"Must provide a file to download, not {file_to_download!s}"
raise SDSException(msg)
# this allows to transfer deletion of the tmp dir responsibility
return tmp_dir_stack.pop_all().aclose, file_to_download
delete_tmp_dir_cb = tmp_dir_stack.pop_all().aclose
return delete_tmp_dir_cb, file_to_download

delete_tmp_dir_callable, file_to_download = await _()

Expand Down

0 comments on commit 7f0986d

Please sign in to comment.