Skip to content

Commit 07dfb4d

Browse files
committed
Adjusting import error handling comments for coverage and clarity
1 parent 6bb6b2d commit 07dfb4d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

microbootstrap/instruments/opentelemetry_instrument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
try:
1919
from pyroscope.otel import PyroscopeSpanProcessor # type: ignore[import-untyped]
20-
except ImportError:
20+
except ImportError: # pragma: no cover
2121
PyroscopeSpanProcessor = None
2222

2323

microbootstrap/instruments/pyroscope_instrument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
try:
99
import pyroscope # type: ignore[import-untyped]
10-
except ImportError:
10+
except ImportError: # pragma: no cover
1111
pyroscope = None # Not supported on Windows
1212

1313

tests/instruments/test_pyroscope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
try:
99
from pyroscope.otel import PyroscopeSpanProcessor # type: ignore[import-untyped]
10-
except ImportError:
10+
except ImportError: # pragma: no cover
1111
pytest.skip("pyroscope is not installed", allow_module_level=True)
1212

1313

0 commit comments

Comments
 (0)