From 8896a494e8558c746b054a1423002210e3be5fe0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 6 Apr 2026 14:29:50 +1000 Subject: [PATCH] Skip import for zero length records (#11676) --- tasks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks.py b/tasks.py index 0dd32d9ac9..447306dfc1 100644 --- a/tasks.py +++ b/tasks.py @@ -1276,6 +1276,10 @@ def import_records( nonlocal ignore_nonexistent nonlocal c + # Skip if there is no data to load + if len(data) == 0: + return + info(f'Loading {len(data)} {title} records...') with tempfile.NamedTemporaryFile(