Skip to content

Commit f3791ec

Browse files
committed
Removed useless if
1 parent d1b06c6 commit f3791ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry_sdk/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,7 @@ def single_exception_from_error_tuple(
697697
is_root_exception = exception_id == 0
698698
if not is_root_exception and parent_id is not None:
699699
exception_value["mechanism"]["parent_id"] = parent_id
700-
if exception_id is not None and exception_id > 0:
701-
exception_value["mechanism"]["type"] = "chained"
700+
exception_value["mechanism"]["type"] = "chained"
702701

703702
if is_root_exception and "type" not in exception_value["mechanism"]:
704703
exception_value["mechanism"]["type"] = "generic"

0 commit comments

Comments
 (0)