Fix KeyError in telegram_bot media group download debug log (#169519)

This commit is contained in:
Boris Bolshem
2026-05-01 08:36:41 +02:00
committed by GitHub
parent 1ad931745d
commit 0958f81578
+1 -1
View File
@@ -562,7 +562,7 @@ class TelegramNotificationService:
authentication=entry.get(ATTR_AUTHENTICATION),
verify_ssl=entry[ATTR_VERIFY_SSL],
)
_LOGGER.debug("downloaded: %s", entry[ATTR_URL])
_LOGGER.debug("downloaded: %s", entry.get(ATTR_URL) or entry.get(ATTR_FILE))
caption: str | None = entry.get(ATTR_CAPTION)
if entry[ATTR_MEDIA_TYPE] == InputMediaType.AUDIO: