Skip to content

Commit 342014b

Browse files
Fix lint
1 parent 27d9977 commit 342014b

File tree

1 file changed

+2
-2
lines changed
  • opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation

1 file changed

+2
-2
lines changed

opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def initialize(*, swallow_exceptions=True):
135135
distro.configure()
136136
_load_configurators()
137137
_load_instrumentors(distro)
138-
except Exception as e: # pylint: disable=broad-except
138+
except Exception as exc: # pylint: disable=broad-except
139139
_logger.exception("Failed to auto initialize OpenTelemetry")
140140
if not swallow_exceptions:
141-
raise ValueError("Failed to auto initialize OpenTelemetry") from e
141+
raise ValueError("Failed to auto initialize OpenTelemetry") from exc

0 commit comments

Comments
 (0)