From 838324ed1d46e72b28069edef72a362da747d6a2 Mon Sep 17 00:00:00 2001 From: Cai Wingfield Date: Fri, 1 Dec 2023 21:28:41 +0000 Subject: [PATCH] Typo --- kymata/entities/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kymata/entities/expression.py b/kymata/entities/expression.py index 0085404c..2643eef0 100644 --- a/kymata/entities/expression.py +++ b/kymata/entities/expression.py @@ -217,7 +217,7 @@ def save(self, to_path_or_file: path_type | file_type, compression=ZIP_LZMA, ove "Files saved using .save should not (yet) be treated as stable or future-proof.") if isinstance(to_path_or_file, str): - to_path = Path(to_path_or_file) + to_path_or_file = Path(to_path_or_file) if isinstance(to_path_or_file, Path) and to_path_or_file.exists() and not overwrite: raise FileExistsError(to_path_or_file)