From e3fef629c9cc0790b0008b54cc6de99e5762a361 Mon Sep 17 00:00:00 2001 From: Andreas Hubel <andi@saerdnaer.de> Date: Sun, 22 Dec 2024 14:49:35 +0100 Subject: [PATCH] fix(scheduleimport): use correct way to access import_configuration --- src/core/models/schedules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/models/schedules.py b/src/core/models/schedules.py index e9245a6ff..6ef85f09b 100644 --- a/src/core/models/schedules.py +++ b/src/core/models/schedules.py @@ -844,9 +844,9 @@ class ScheduleSourceImport(models.Model): self.summary = f"{data.get('version') or ''}\nDONE: {stats_str}"[:200] # add debug option to disable abort feature, as it might hide the actual error messages - if len(errors) > len(activity) / 2 and self.import_configuration.get('debug') is not True: + if len(errors) > len(activity) / 2 and self.schedule_source.import_configuration.get('debug') is not True: self.save(update_fields=['summary']) - raise Exception('Too many errors, aborting import: ' + stats) + raise Exception('Too many errors, aborting import: ' + stats_str, errors) self.save(update_fields=['data', 'summary']) -- GitLab