Skip to content
Snippets Groups Projects
Commit fc7bcd9b authored by Andreas Hubel's avatar Andreas Hubel
Browse files

fix(scheduleimport): annother approace to reduce mapping inconsistency #653

This partly reverts commit 63a25241.
parent b9fe4ff2
Branches
Tags
No related merge requests found
......@@ -348,6 +348,9 @@ class ScheduleSource(models.Model):
)
logging.exception('Import on ScheduleSource %s encountered exception on creating mapping for %s "%s".', self.pk, item_type, item_source_id)
# ... and delete the incomplete (wrong) mapping if it was created
if new_mapping:
mapping.delete()
return 'error'
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment