From e020452a3d60a8573b21c2c493a9823c9c86634e Mon Sep 17 00:00:00 2001 From: haraksin Date: Mon, 15 Jun 2020 19:26:07 -0700 Subject: [PATCH] invalid syntaxi in except clause --- 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 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