Skip to content

Commit 2bc27d1

Browse files
outergodalexmojaki
andauthored
narrow down exception handling
Co-authored-by: Alex Hall <[email protected]>
1 parent 4493759 commit 2bc27d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ async def _():
19241924
self.client.get(
19251925
"/foobar",
19261926
)
1927-
except Exception: # pylint: disable=W0718
1927+
except UnhandledException:
19281928
pass
19291929

19301930
self.assertIsNotNone(self.request_trace_id)

0 commit comments

Comments
 (0)