Skip to content

Commit 9a0708e

Browse files
committed
style: fix error [E266] - Too many leading # before block comment.
Used Ruff (vscode and pre-commit) to: - Black-compatible code formatting. - fix all auto-fixable violations. - isort-compatible import sorting. - flake8-simplify manual fixes. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent af4cf1f commit 9a0708e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/instana/instrumentation/spyne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def record_error(
4747
) -> None:
4848
resp_code = int(response_string.split()[0])
4949

50-
if 500 <= resp_code:
50+
if resp_code >= 500:
5151
span.record_exception(error)
5252

5353
@wrapt.patch_function_wrapper("spyne.server.wsgi", "WsgiApplication.handle_error")
@@ -124,7 +124,7 @@ def process_request_with_instana(
124124

125125
tracer.inject(span.context, Format.HTTP_HEADERS, response_headers)
126126

127-
## Store the span in the user defined context object offered by Spyne
127+
# Store the span in the user defined context object offered by Spyne
128128
if ctx.udc:
129129
ctx.udc.span = span
130130
else:

0 commit comments

Comments
 (0)