excepting Exception instead of BaseException
parent
43a27c83b1
commit
2aa3522cae
|
@ -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.")
|
||||||
|
|
Loading…
Reference in New Issue