From 26ad2c94861ecf674e2efbda9bf95f4795a9e0ec Mon Sep 17 00:00:00 2001 From: Attila Sasvari Date: Sun, 14 Jul 2024 12:32:40 +0200 Subject: [PATCH] Update opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py Co-authored-by: Riccardo Magliocchetti --- opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py index c16803c77b2..c73f3d8afa9 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py @@ -227,8 +227,6 @@ def get_empty() -> "Resource": @property def attributes(self) -> Attributes: - if self._attributes is None: - raise ValueError("Attributes are not set.") return self._attributes @property