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