diff --git a/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py b/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py index b74f9cbde1..25aaf81e99 100644 --- a/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py +++ b/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py @@ -18,6 +18,7 @@ class AttackEnrichment(): file_path = os.path.join(os.path.dirname(__file__), '../../../../lookups/mitre_enrichment.csv') try: + raise(Exception("INTENTIONAL EXCEPTION TO FORCE USE OF OFFLINE MITRE ATTACK ENRICHMENT")) lift = attack_client() all_enterprise = lift.get_enterprise(stix_format=False) enterprise_relationships = lift.get_enterprise_relationships() @@ -67,4 +68,4 @@ class AttackEnrichment(): attack_lookup = {rows[0]:{'technique': rows[1], 'tactics': rows[2].split('|'), 'groups': rows[3].split('|')} for rows in reader} attack_lookup.pop('mitre_id') - return attack_lookup \ No newline at end of file + return attack_lookup