Skip to content

Commit bcaa51f

Browse files
add brackets to condition
1 parent 82e25d3 commit bcaa51f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sentry_sdk/tracing.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,8 @@ def _in_http_status_code_range(self, code, code_ranges):
982982
wrong_type_message = "trace_ignore_status_codes must be a list of integers or pairs of integers."
983983
try:
984984
low, high = target
985-
if (
986-
isinstance(code, int)
987-
and not isinstance(low, int)
988-
or not isinstance(high, int)
985+
if isinstance(code, int) and (
986+
not isinstance(low, int) or not isinstance(high, int)
989987
):
990988
logger.warning(wrong_type_message)
991989
continue

0 commit comments

Comments
 (0)