diff --git a/nucleivuln/main.py b/nucleivuln/main.py index 0df45ba..4c4fe1d 100644 --- a/nucleivuln/main.py +++ b/nucleivuln/main.py @@ -115,7 +115,9 @@ def push_sighting_to_vulnerability_lookup( # Post the JSON to Vulnerability Lookup try: - vuln_lookup.create_sighting(sighting=sighting) + r = vuln_lookup.create_sighting(sighting=sighting) + if "message" in r: + print(r["message"]) except Exception as e: print( f"Error when sending POST request to the Vulnerability Lookup server:\n{e}"