From 0cb616d1a5e37c7ecf0b75a2190b12b5ad99d69e Mon Sep 17 00:00:00 2001 From: Ayush Kamat Date: Sat, 21 Oct 2023 08:20:15 -0700 Subject: [PATCH] update persistence setter Signed-off-by: Ayush Kamat --- latch_cli/snakemake/serialize.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/latch_cli/snakemake/serialize.py b/latch_cli/snakemake/serialize.py index e6e4816d..2e19db4d 100644 --- a/latch_cli/snakemake/serialize.py +++ b/latch_cli/snakemake/serialize.py @@ -124,7 +124,10 @@ def extract_dag(self): priorityfiles=set(), ) - self._persistence = Persistence(dag=dag) + try: + self.persistence = Persistence(dag=dag) + except AttributeError: + self._persistence = Persistence(dag=dag) dag.init() dag.update_checkpoint_dependencies()