Do not try to delete XML data without id

If the record has already been cleaned, there is no need to try to delete again.
(grafted from e5ed9fc71d218c967bdbfc9489773905e5a5466c)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2025-02-10 01:39:24 +01:00
parent 6fe37d2a26
commit cfcc82be78
+3
View File
@@ -795,6 +795,9 @@ def post_import(pool, module, to_delete):
for mrec in mdata:
model, db_id, fs_id = mrec.model, mrec.db_id, mrec.fs_id
if db_id is None:
mdata_delete.append(mrec)
continue
logger.info('Deleting %s@%s from %s.%s', db_id, model, module, fs_id)
try: