From f2d8b30e0842b336f58da4b8534d5a142c67a42f Mon Sep 17 00:00:00 2001 From: Ching Date: Tue, 9 Apr 2024 17:11:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=20l?= =?UTF-8?q?inear=20webhook=20=E4=B8=AD=20=20issue=20=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20TUN-52=20TUN-53?= =?UTF-8?q?=20TUN-54=20TUN-55=20TUN-56=20TUN-57=20TUN-58=20TUN-59=20TUN-60?= =?UTF-8?q?=20TUN-61=20TUN-62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 83f21c2..cdc7dbd 100644 --- a/app.py +++ b/app.py @@ -60,7 +60,8 @@ def linear_issue(): notify_type = apprise.NotifyType.SUCCESS apobj.notify(body=body, title=title, notify_type=notify_type) elif data['action'] == 'create': - if not data.get('data', {}).get('botActor', {}).get('subType') == 'discord': + if not (data.get('data', {}).get('botActor') + and data.get('data', {}).get('botActor').get('subType') == 'discord'): title = data['data']['identifier'] + ' - ' + data['data']['title'] body = f"创建 issue。\n#Status\n{data['data']['state']['name']}" notify_type = apprise.NotifyType.INFO