From 2aa3522cae0efc4701112c13d58e4053324faa36 Mon Sep 17 00:00:00 2001 From: George Haraksin Date: Tue, 14 Jun 2022 00:02:15 -0700 Subject: [PATCH] excepting Exception instead of BaseException --- misp_taxii_hooks/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_taxii_hooks/hooks.py b/misp_taxii_hooks/hooks.py index 803c370..7d2e1d2 100644 --- a/misp_taxii_hooks/hooks.py +++ b/misp_taxii_hooks/hooks.py @@ -119,7 +119,7 @@ def post_stix(manager, content_block, collection_ids, service_id): try: package = pymisp.tools.stix.load_stix(StringIO(block)) - except: + except Exception: log.error('Could not load stix into MISP format; exiting.') return 0 log.debug("STIX loaded succesfully.")