diff --git a/instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py b/instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py index 2e7c9e997f..5a2ca5147b 100644 --- a/instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py @@ -194,8 +194,8 @@ def _handle_exception( if _falcon_version == 1: return super()._handle_exception(ex, req, resp, params) - else: - return super()._handle_exception(req, resp, ex, params) + + return super()._handle_exception(req, resp, ex, params) def __call__(self, env, start_response): # pylint: disable=E1101