Skip to content

Commit 56d7470

Browse files
committed
linting fix
1 parent e9bf1f1 commit 56d7470

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_instrumentation_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from logging import Logger, getLogger
66

7-
import pkg_resources # noqa: F401
7+
import pkg_resources # noqa: F401, W0611
88

99
from amazon.opentelemetry.distro._utils import is_installed
1010
from amazon.opentelemetry.distro.patches._resource_detector_patches import _apply_resource_detector_patches

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_otlp_aws_span_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_no_botocore_valid_xray_endpoint(self, mock_get_distribution):
6666
"""Test that exporter defaults when using OTLP CW endpoint without botocore"""
6767

6868
def throw_exception():
69-
raise Exception()
69+
raise ImportError("test error")
7070

7171
mock_get_distribution.side_effect = throw_exception
7272

0 commit comments

Comments
 (0)