Skip to content

Commit

Permalink
catch when null passed in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellaenriquez committed Oct 5, 2023
1 parent 25d51ff commit 6d03deb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry_plugins/splunk/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def get_event_payload_properties(self, event):
for key, value in event.interfaces.items():
if key == "request":
headers = value.headers
if headers is None:
headers = dict()
if not isinstance(headers, dict):
headers = dict(headers or ())

Expand Down

0 comments on commit 6d03deb

Please sign in to comment.