From 18fbf80f5f32464c93ed222ee5b67a0eb843b005 Mon Sep 17 00:00:00 2001 From: Jordan Gibbings Date: Wed, 29 May 2024 16:53:24 +0800 Subject: [PATCH] Remove 'general exception' catch clause --- .../tests/test_instrumentation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py b/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py index b221ab1d75..a61271ad77 100644 --- a/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py @@ -634,8 +634,6 @@ def test_http_client_failed_response(self): self.assertEqual(response.code, 404) except HTTPClientError: pass - except Exception as e: - self.fail(f"Unexpected exception: {e}") spans = self.memory_exporter.get_finished_spans() self.assertEqual(len(spans), 2)