Skip to content

Commit 3dc2734

Browse files
committed
Disable pylint check for catching broad exception. Should be allowed given exception is re-raised.
1 parent f0e4574 commit 3dc2734

File tree

1 file changed

+1
-1
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai

1 file changed

+1
-1
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ async def instrumented_generate_content_stream(
650650
config=config,
651651
**kwargs,
652652
)
653-
except Exception as error:
653+
except Exception as error: # pylint: disable=broad-exception-caught
654654
helper.process_error(error)
655655
helper.finalize_processing()
656656
with trace.use_span(span, end_on_exit=True):

0 commit comments

Comments
 (0)