From 5d79cdced54b40de0407ce056df297b5ffb035ff Mon Sep 17 00:00:00 2001 From: valdergallo Date: Thu, 12 Feb 2015 17:09:39 -0200 Subject: [PATCH] Update task importer --- data_importer/tasks.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/data_importer/tasks.py b/data_importer/tasks.py index ce0915d..c11e252 100644 --- a/data_importer/tasks.py +++ b/data_importer/tasks.py @@ -61,15 +61,10 @@ def run(self, importer=None, source="", owner=None, message="", If parser use raise_errors the error message will raise and logged by celery """ - - if not self.parser.raise_errors: - # validate content - self.parser.is_valid() - # save valid values - self.parser.save() - else: - if self.parser.is_valid(): - self.parser.save() + # validate content + self.parser.is_valid() + # save valid values + self.parser.save() message += "\n"