Skip to content

Commit 7dbcb7e

Browse files
committed
linting fix
1 parent 2f0268c commit 7dbcb7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/exporter/otlp/aws/logs/otlp_aws_logs_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import Dict, Optional, Sequence
99

1010
from requests import Response
11-
from requests.exceptions import ConnectionError
11+
from requests.exceptions import ConnectionError as RequestsConnectionError
1212
from requests.structures import CaseInsensitiveDict
1313

1414
from amazon.opentelemetry.distro.exporter.otlp.aws.common.aws_auth_session import AwsAuthSession
@@ -119,7 +119,7 @@ def _send(self, serialized_data: bytes):
119119
cert=self._client_cert,
120120
)
121121
return response
122-
except ConnectionError:
122+
except RequestsConnectionError:
123123
response = self._session.post(
124124
url=self._endpoint,
125125
data=serialized_data,

0 commit comments

Comments
 (0)