Add condition to fix error (#14856)

This commit is contained in:
Onkar Ravgan 2024-01-25 10:18:01 +05:30 committed by GitHub
parent 17fb2cabca
commit d1460b675b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,7 @@ class AggregatedCostAnalysisReportDataProcessor(DataProcessor):
Helper method to calculate number of data assets within time period Helper method to calculate number of data assets within time period
""" """
try: try:
if not life_cycle: if not life_cycle or not life_cycle.accessed:
return return
# Iterate over the different time periods and update the data # Iterate over the different time periods and update the data