From b9fe4ff236eaeb0d843d32ff5b9c703384eeb8c1 Mon Sep 17 00:00:00 2001 From: Andreas Hubel <andi@saerdnaer.de> Date: Sat, 21 Dec 2024 22:56:35 +0100 Subject: [PATCH] fix(scheduleimport): disable abort feature, as it hides the actual error messages --- src/core/models/schedules.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/models/schedules.py b/src/core/models/schedules.py index c47dad72c..62fbaac7b 100644 --- a/src/core/models/schedules.py +++ b/src/core/models/schedules.py @@ -846,8 +846,9 @@ class ScheduleSourceImport(models.Model): ) self.summary = f"{data.get('version') or ''}\nDONE: {stats}"[:200] - if len(errors) > len(activity) / 2: - raise Exception('Too many errors, aborting import: ' + stats) + # disable abort feature, as it hides the actual error messages + # if len(errors) > len(activity) / 2: + # raise Exception('Too many errors, aborting import: ' + stats) self.save(update_fields=['data', 'summary']) -- GitLab