From 0e46857c8cb84efe9a594e19f6f41ea8de085cc2 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 6 Nov 2022 14:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defs/utils.py b/defs/utils.py index 560a37f..7aaa878 100644 --- a/defs/utils.py +++ b/defs/utils.py @@ -13,7 +13,7 @@ class Release: def __init__(self, data: dict): self.name: str = data["name"] self.url: str = data["url"] - self.description: str = data["description"] + self.description: str = data.get("description", "") self.publishedAt: str = strf_time(data["publishedAt"]) self.publishedAtTime: datetime = strp_time(data["publishedAt"]) self.tagName: str = data["tagName"]