From fd2a49ebbede6d5cf0b1df5e0967912368b67a19 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Fri, 15 Dec 2023 22:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=AA=E6=9C=89=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=B2=A1=E6=9C=89=E6=96=87=E7=AB=A0=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=8A=93=E5=8F=96=E5=A4=B1=E8=B4=A5=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index ea36e0f..c50d365 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -220,11 +220,11 @@ class GMEEK(): period="。" else: period="." - try: - self.blogBase[listJsonName][postNum]["description"]=issue.body.split(period)[0]+period - except: - self.blogBase[listJsonName][postNum]["description"]='' - + + if issue.body==None: + issue.body='' + + self.blogBase[listJsonName][postNum]["description"]=issue.body.split(period)[0]+period self.blogBase[listJsonName][postNum]["top"]=0 for event in issue.get_events(): if event.event=="pinned":