Skip to content

Commit

Permalink
fix: fix missing await when opening checkpoint output (#2868)
Browse files Browse the repository at this point in the history
<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [x] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [x] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
  • Loading branch information
johanneskoester committed May 10, 2024
1 parent 3047683 commit 25a361b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake/io.py
Expand Up @@ -327,7 +327,7 @@ def open(self, mode="r", buffering=-1, encoding=None, errors=None, newline=None)
This can (and should) be used in a `with`-statement.
If the file is a remote storage file, retrieve it first if necessary.
"""
if self.is_storage and not self.exists_local():
if self.is_storage and not async_run(self.exists_local()):
async_run(self.retrieve_from_storage())
f = open(
self,
Expand Down

0 comments on commit 25a361b

Please sign in to comment.