From d1460b675b9e65ac3ff7d348b9a7067d428a963d Mon Sep 17 00:00:00 2001 From: Onkar Ravgan Date: Thu, 25 Jan 2024 10:18:01 +0530 Subject: [PATCH] Add condition to fix error (#14856) --- .../processor/reports/cost_analysis_report_data_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestion/src/metadata/data_insight/processor/reports/cost_analysis_report_data_processor.py b/ingestion/src/metadata/data_insight/processor/reports/cost_analysis_report_data_processor.py index e33a28847d9..bf951a8d4e4 100644 --- a/ingestion/src/metadata/data_insight/processor/reports/cost_analysis_report_data_processor.py +++ b/ingestion/src/metadata/data_insight/processor/reports/cost_analysis_report_data_processor.py @@ -241,7 +241,7 @@ class AggregatedCostAnalysisReportDataProcessor(DataProcessor): Helper method to calculate number of data assets within time period """ try: - if not life_cycle: + if not life_cycle or not life_cycle.accessed: return # Iterate over the different time periods and update the data