new: Added error catching on ZMQ pull
parent
25430a51ae
commit
c2846fd5d9
|
@ -72,8 +72,12 @@ while True:
|
|||
log.debug("Loaded successfully!")
|
||||
|
||||
# Push the package to TAXII
|
||||
try:
|
||||
cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1",
|
||||
uri="http://{}/services/inbox".format(config["domain"]),
|
||||
collection_names=["collection"])
|
||||
|
||||
log.info("Pushed!")
|
||||
except Exception as ex:
|
||||
log.fatal("COULD NOT PUSH")
|
||||
log.exception(ex)
|
||||
|
|
Loading…
Reference in New Issue