Skip to content

Commit 0731af5

Browse files
committed
fix: ruff
1 parent 920f7e8 commit 0731af5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

posthog/exception_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def _serialize_variable_value(value, limiter, max_length=1024):
972972
result = repr(value)
973973
if len(result) > max_length:
974974
result = result[: max_length - 3] + "..."
975-
975+
976976
result_size = len(result)
977977
if not limiter.can_add(result_size):
978978
return None

posthog/test/test_exception_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def trigger_error():
392392

393393
assert "ZeroDivisionError" in output
394394
assert "code_variables" in output
395-
395+
396396
assert "re.compile(" in output and "\\\\d+" in output
397397
assert "datetime.datetime(2024, 1, 15, 10, 30, 45)" in output
398398
assert "datetime.timedelta(days=5, seconds=10800)" in output

0 commit comments

Comments
 (0)