aboutsummaryrefslogtreecommitdiff
path: root/sgdfi/objects/operation.py
diff options
context:
space:
mode:
Diffstat (limited to 'sgdfi/objects/operation.py')
-rw-r--r--sgdfi/objects/operation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sgdfi/objects/operation.py b/sgdfi/objects/operation.py
index 63858d5..db35d6d 100644
--- a/sgdfi/objects/operation.py
+++ b/sgdfi/objects/operation.py
@@ -24,6 +24,10 @@ class _OperationFields:
""" Champs de données concernant une opération. """
def __init__(self, value, sep = ','):
+ if not value:
+ self._fields = {}
+ return
+
if type(value) != str:
raise ValueError("fields should be string")