(event: dict[str, Any], hint: dict[str, Any])
| 45 | |
| 46 | |
| 47 | def sanitize_event(event: dict[str, Any], hint: dict[str, Any]) -> Optional[dict[str, Any]]: |
| 48 | if 'exception' not in event: |
| 49 | return event |
| 50 | |
| 51 | for value in event["exception"].get("values", []): |
| 52 | frames = value.get("stacktrace", {}).get("frames", []) |
| 53 | for frame in frames: |
| 54 | if frame_vars := frame.get("vars"): |
| 55 | frame['vars'] = _sanitize_dictionaries(frame_vars) |
| 56 | return event |
searching dependent graphs…