Skip to content

Commit 36cd2c4

Browse files
committed
Removed useless if
1 parent caffb8a commit 36cd2c4

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
@@ -672,8 +672,7 @@ def single_exception_from_error_tuple(
672672
is_root_exception = exception_id == 0
673673
if not is_root_exception and parent_id is not None:
674674
exception_value["mechanism"]["parent_id"] = parent_id
675-
if exception_id is not None and exception_id > 0:
676-
exception_value["mechanism"]["type"] = "chained"
675+
exception_value["mechanism"]["type"] = "chained"
677676

678677
if is_root_exception and "type" not in exception_value["mechanism"]:
679678
exception_value["mechanism"]["type"] = "generic"

0 commit comments

Comments
 (0)