Skip import for zero length records (#11676)
This commit is contained in:
parent
e91f306245
commit
8896a494e8
4
tasks.py
4
tasks.py
|
|
@ -1276,6 +1276,10 @@ def import_records(
|
||||||
nonlocal ignore_nonexistent
|
nonlocal ignore_nonexistent
|
||||||
nonlocal c
|
nonlocal c
|
||||||
|
|
||||||
|
# Skip if there is no data to load
|
||||||
|
if len(data) == 0:
|
||||||
|
return
|
||||||
|
|
||||||
info(f'Loading {len(data)} {title} records...')
|
info(f'Loading {len(data)} {title} records...')
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile(
|
with tempfile.NamedTemporaryFile(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue