From d3c824926cfbee12167a286fa74fdbfd3be0bb26 Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 27 Feb 2024 14:26:58 +0300 Subject: [PATCH] KeyError fix --- donationalerts_api/asyncio_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/donationalerts_api/asyncio_api.py b/donationalerts_api/asyncio_api.py index ae41f46..976930b 100644 --- a/donationalerts_api/asyncio_api.py +++ b/donationalerts_api/asyncio_api.py @@ -263,7 +263,7 @@ class Alert: data["amount_main"], data["currency"], data["message"], - data["header"], + data.get("header", ""), datetime.strptime(data["date_created"], "%Y-%m-%d %H:%M:%S"), data["emotes"], data["ap_id"],