diff --git a/legal-api/src/legal_api/services/business_details_version.py b/legal-api/src/legal_api/services/business_details_version.py index fb3f60bdb..bd0693af6 100644 --- a/legal-api/src/legal_api/services/business_details_version.py +++ b/legal-api/src/legal_api/services/business_details_version.py @@ -594,6 +594,10 @@ def resolution_json(resolution_revision) -> dict: @staticmethod def business_revision_json(business_revision, business_json): """Return the business revision as a json object.""" + # business_revision for tombstone business will be None + # check and skip to return original business_json + if not business_revision: + return business_json business_json['hasRestrictions'] = business_revision.restriction_ind business_json['dissolutionDate'] = LegislationDatetime.format_as_legislation_date( business_revision.dissolution_date) if business_revision.dissolution_date else None