Skip to content

Commit 898da4f

Browse files
committed
feat: wip
1 parent 6c22f8d commit 898da4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

posthog/exception_utils.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
r"(?i).*private_key.*",
5656
r"(?i).*token.*",
5757
r"(?i).*aws_access_key_id.*",
58+
r"(?i).*_pass",
59+
r"(?i)sk_.*",
60+
r"(?i).*jwt.*",
5861
]
5962

6063
DEFAULT_CODE_VARIABLES_IGNORE_PATTERNS = [r"^__.*"]
@@ -1084,6 +1087,15 @@ def serialize_code_variables(
10841087

10851088
def try_attach_code_variables_to_frames(
10861089
all_exceptions, exc_info, mask_patterns, ignore_patterns
1090+
):
1091+
try:
1092+
attach_code_variables_to_frames(all_exceptions, exc_info, mask_patterns, ignore_patterns)
1093+
except Exception:
1094+
pass
1095+
1096+
1097+
def attach_code_variables_to_frames(
1098+
all_exceptions, exc_info, mask_patterns, ignore_patterns
10871099
):
10881100
exc_type, exc_value, traceback = exc_info
10891101

0 commit comments

Comments
 (0)