From d64e1eedaa9ac22ed9e23409c456fad00de6a9b8 Mon Sep 17 00:00:00 2001 From: Ching Date: Tue, 9 Apr 2024 16:15:05 +0800 Subject: [PATCH] fix: Fix condition to check botActor subtype in create action --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index adbf0ab..83f21c2 100644 --- a/app.py +++ b/app.py @@ -60,7 +60,7 @@ 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['data'].get('botActor', {}).get('subType') == 'discord': + if not 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