diff --git a/misp_taxii_hooks/hooks.py b/misp_taxii_hooks/hooks.py index fa6178f..1c79021 100644 --- a/misp_taxii_hooks/hooks.py +++ b/misp_taxii_hooks/hooks.py @@ -158,7 +158,7 @@ def post_stix(manager, content_block, collection_ids, service_id): try: if MISP: event = MISP.add_event(package) - except ConnectionError, NameError: + except ConnectionError: log.error("Cannot push to MISP; please ensure that MISP is up and running at {}. Skipping MISP upload.".format(CONFIG['misp']['url'])) if ( CONFIG["misp"]["publish"] == True or