Skip to content

Commit 8554f14

Browse files
committed
chore: Auto-formats code using 'tox -e ruff'
1 parent 4467e53 commit 8554f14

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def create(
217217
except Exception: # pylint: disable=broad-exception-caught
218218
logger.exception(
219219
"Failed to load resource detector '%s', skipping",
220-
resource_detector
220+
resource_detector,
221221
)
222222
continue
223223
resource = get_aggregated_resources(

opentelemetry-sdk/tests/resources/test_resources.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,9 @@ def test_resource_detector_entry_points_host(self):
802802
self.assertIn(HOST_ARCH, resource.attributes)
803803

804804
@patch.dict(
805-
environ, {OTEL_EXPERIMENTAL_RESOURCE_DETECTORS: "doesnotexist,host"}, clear=True
805+
environ,
806+
{OTEL_EXPERIMENTAL_RESOURCE_DETECTORS: "doesnotexist,host"},
807+
clear=True,
806808
)
807809
def test_resource_detector_entry_points_tolerate_missing_detector(self):
808810
resource = Resource({}).create()

0 commit comments

Comments
 (0)