Skip import for zero length records (#11676)

This commit is contained in:
Oliver authored and GitHub committed 2026-04-06 14:29:50 +10:00
1 parent e91f306245
commit 8896a494e8
1 file changed
+4
+4
View File
@@ -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(