From 64cf2d6815e9accf33eebbfcfd751c0cb2d49b91 Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Wed, 8 May 2024 19:58:04 +0530 Subject: [PATCH] player ID None --- goodtimes/webhook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/goodtimes/webhook.py b/goodtimes/webhook.py index 5c6b8e3..9b54998 100644 --- a/goodtimes/webhook.py +++ b/goodtimes/webhook.py @@ -33,6 +33,9 @@ class NotificationService: ) def send_notification(self, title, message, player_id): + if player_id is None: + print("Player ID is None, skipping notification") + return notification_payload = { "headings": {"en": title}, "contents": {"en": message},