Skip to content

Commit c9bd525

Browse files
pauldambraoliverb123
authored andcommitted
fix
1 parent 02a0a30 commit c9bd525

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ check_untyped_defs = True
99
warn_unreachable = True
1010
strict_equality = True
1111
ignore_missing_imports = True
12-
exclude = env/.*|venv/.*
12+
exclude = env/.*|venv/.*|build/.*
1313

1414
[mypy-django.*]
1515
ignore_missing_imports = True

posthog/exception_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ def exceptions_from_error(
612612
exception_id += 1
613613

614614
should_supress_context = (
615-
hasattr(exc_value, "__suppress_context__") and exc_value.__suppress_context__
616-
) # type: ignore
615+
hasattr(exc_value, "__suppress_context__") and exc_value.__suppress_context__ # type: ignore
616+
)
617617
if should_supress_context:
618618
# Add direct cause.
619619
# The field `__cause__` is set when raised with the exception (using the `from` keyword).

0 commit comments

Comments
 (0)