From 25a361bb14fcd66a26535093e0c05b5cf84e69d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Fri, 10 May 2024 13:01:05 +0200 Subject: [PATCH] fix: fix missing await when opening checkpoint output (#2868) ### QC * [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). --- snakemake/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake/io.py b/snakemake/io.py index 6ac87b559..fb680bd3a 100755 --- a/snakemake/io.py +++ b/snakemake/io.py @@ -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,