diff --git a/src/core/models/schedules.py b/src/core/models/schedules.py
index e9245a6fff58b973224c68ca2defedf3cc27e73f..6ef85f09bb2e1221cc50dba818a075998acc892d 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'])