aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2024-07-18 01:20:05 +0200
committerThéo de la Hogue2024-07-18 01:20:05 +0200
commit1bec1dec064e48a8858f2107c6023b0c78a6c05f (patch)
tree5d43411c1ff981d060fac0a56c7a4817a794f39e /src
parentc06543182f3f85a6cc6eb65f66ed5ce407496d0a (diff)
downloadargaze-1bec1dec064e48a8858f2107c6023b0c78a6c05f.zip
argaze-1bec1dec064e48a8858f2107c6023b0c78a6c05f.tar.gz
argaze-1bec1dec064e48a8858f2107c6023b0c78a6c05f.tar.bz2
argaze-1bec1dec064e48a8858f2107c6023b0c78a6c05f.tar.xz
don't write if the file is closed.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/UtilsFeatures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/argaze/utils/UtilsFeatures.py b/src/argaze/utils/UtilsFeatures.py
index ce92e35..cac186a 100644
--- a/src/argaze/utils/UtilsFeatures.py
+++ b/src/argaze/utils/UtilsFeatures.py
@@ -254,6 +254,10 @@ class FileWriter(DataFeatures.PipelineStepObject):
Tuple elements are converted into quoted strings separated by separator string.
"""
+ if self.__file.closed:
+
+ return
+
# Format list or tuple element into quoted strings
if not isinstance(data, str):