Skip to content

Commit

Permalink
Adding additional error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
phutelmyer committed Oct 23, 2023
1 parent 6026e52 commit aa8e244
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/strelka/strelka.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,4 +1005,9 @@ def visit(path, key, value):
remap1,
lambda p, k, v: v != "" and v != [] and v != {} and v is not None,
)
return json.dumps(remap2)

try:
return json.dumps(remap2)
except Exception:
logging.exception(f"Failed to serialize event {remap2}")
return json.dumps({})

0 comments on commit aa8e244

Please sign in to comment.