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},