excepting Exception instead of BaseException

pull/82/head
George Haraksin 2022-06-14 00:02:15 -07:00
parent 43a27c83b1
commit 2aa3522cae
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ def post_stix(manager, content_block, collection_ids, service_id):
try: try:
package = pymisp.tools.stix.load_stix(StringIO(block)) package = pymisp.tools.stix.load_stix(StringIO(block))
except: except Exception:
log.error('Could not load stix into MISP format; exiting.') log.error('Could not load stix into MISP format; exiting.')
return 0 return 0
log.debug("STIX loaded succesfully.") log.debug("STIX loaded succesfully.")