From afd7c90db8139ddbc7c750dc926b6bb363c7dfc9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 24 Oct 2015 15:07:47 +0200 Subject: Imports: concat, dont' add unecessary new line characters --- ishtar_common/data_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/data_importer.py') diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 0462e2405..2e6289c88 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -830,9 +830,9 @@ class Importer(object): if idx == (len(keys) - 1): # last if concat: if key not in current_data: - current_data[key] = {} + current_data[key] = "" if not value: - value = "" + continue current_data[key] = (current_data[key] + u"\n") \ if current_data[key] else u"" current_data[key] += value -- cgit v1.2.3