diff --git a/common/lib/dataset.py b/common/lib/dataset.py index 534a9b6de..8f8353992 100644 --- a/common/lib/dataset.py +++ b/common/lib/dataset.py @@ -819,7 +819,7 @@ def get_columns(self): # no file to get columns from return False - if (self.get_results_path().suffix.lower() == ".csv") or (self.get_results_path().suffix.lower() == ".ndjson" and self.get_own_processor().map_item_method_available(dataset=self)): + if (self.get_results_path().suffix.lower() == ".csv") or (self.get_results_path().suffix.lower() == ".ndjson" and self.get_own_processor() is not None and self.get_own_processor().map_item_method_available(dataset=self)): return self.get_item_keys(processor=self.get_own_processor()) else: # Filetype not CSV or an NDJSON with `map_item`