fixed counter that was falsified by raises

This commit is contained in:
Guilhem Fauré 2023-06-08 10:12:56 +02:00
parent 631c168c8c
commit 39082cb994

View File

@ -560,7 +560,8 @@ class RedactionalObject(WritableObject):
LOG.debug(f"Writing documents of {type(self).__name__} `{self._title}`") LOG.debug(f"Writing documents of {type(self).__name__} `{self._title}`")
output: list[str] = [] output: list[str] = []
total = len(children) total = len(children)
for i, obj in enumerate(children): i = 0
for obj in children:
try: try:
output.append( output.append(
obj.write_all( obj.write_all(
@ -572,6 +573,7 @@ class RedactionalObject(WritableObject):
storage_parentdir, storage_parentdir,
) )
) )
i += 1
except LangNotFoundError as err: except LangNotFoundError as err:
LOG.debug(err) LOG.debug(err)
except DontExportDraftError as err: except DontExportDraftError as err: