diff --git a/apps/vast/vast_threatbus/vast_threatbus.py b/apps/vast/vast_threatbus/vast_threatbus.py index 7c27b21c..86eeb4d0 100755 --- a/apps/vast/vast_threatbus/vast_threatbus.py +++ b/apps/vast/vast_threatbus/vast_threatbus.py @@ -576,7 +576,7 @@ async def invoke_cmd_for_context( await proc.stdin.drain() proc.stdin.close() stdout, stderr = await proc.communicate() - if stderr: + if proc.returncode != 0 and stderr: logger.error(f"Error while transforming sighting context: {stderr}") return stdout