invalid syntaxi in except clause

pull/82/head
haraksin 2020-06-15 19:26:07 -07:00
parent 0aaed66540
commit e020452a3d
1 changed files with 1 additions and 1 deletions

View File

@ -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