Skip to content

Commit f203475

Browse files
committed
lint
1 parent 64e6991 commit f203475

File tree

1 file changed

+2
-1
lines changed
  • sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export

1 file changed

+2
-1
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,13 @@ def _format_storage_telemetry_item(item: TelemetryItem) -> TelemetryItem:
439439
item.data.base_data.additional_properties = None # type: ignore
440440
return item
441441

442+
# mypy: disable-error-code="union-attr"
442443
def _get_authentication_credential(**kwargs: Any) -> Optional[ManagedIdentityCredential]:
443444
if "credential" in kwargs:
444445
return kwargs.get("credential")
445446
try:
446447
if _APPLICATIONINSIGHTS_AUTHENTICATION_STRING in os.environ:
447-
auth_string = os.getenv(_APPLICATIONINSIGHTS_AUTHENTICATION_STRING)
448+
auth_string = os.getenv(_APPLICATIONINSIGHTS_AUTHENTICATION_STRING, "")
448449
kv_pairs = auth_string.split(";")
449450
auth_string_d = {}
450451
for kv_pair in kv_pairs:

0 commit comments

Comments
 (0)