Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #186
Browse files Browse the repository at this point in the history
Check for return code when running transform process
  • Loading branch information
dominiklohmann authored Jan 26, 2022
2 parents a26096e + af6929f commit 7c87aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/vast/vast_threatbus/vast_threatbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c87aa9

Please sign in to comment.