Fix bug in importer, when there are no source data records.

This commit is contained in:
Lance Edgar 2015-12-01 17:40:31 -06:00
parent 2d9efb44cd
commit a8b9c5d803

View file

@ -102,7 +102,7 @@ class Importer(Object):
if count is None:
count = len(records)
if count == 0:
return 0
return [], []
self.fields = fields
self.key = key