From bc331db06c95f13a29b309d091e4d70d296dc909 Mon Sep 17 00:00:00 2001 From: Lou Stella Date: Tue, 16 Aug 2022 11:04:24 -0500 Subject: [PATCH] Print error instead of bailing out on enrichment failure --- .../contentctl_infrastructure/builder/cve_enrichment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/contentctl_project/contentctl_infrastructure/builder/cve_enrichment.py b/bin/contentctl_project/contentctl_infrastructure/builder/cve_enrichment.py index ba158219e6..754a6428b7 100644 --- a/bin/contentctl_project/contentctl_infrastructure/builder/cve_enrichment.py +++ b/bin/contentctl_project/contentctl_infrastructure/builder/cve_enrichment.py @@ -78,10 +78,9 @@ class CveEnrichment(): except TypeError as TypeErr: # there was a error calling the circl api lets just empty the object print("WARNING, issue enriching {0}, with error: {1}".format(cve_id, str(TypeErr))) - sys.exit(1) + cve_enriched = dict() except Exception as e: print("WARNING - {0}".format(str(e))) - sys.exit(1) return cve_enriched \ No newline at end of file