From c400c029ac77a2d3241d5c37013811f539aca6cc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 Aug 2019 11:52:38 +0100 Subject: [PATCH] Avoid including None --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 1122f410..0c72ea02 100644 --- a/posts.py +++ b/posts.py @@ -461,13 +461,14 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ summary=subject sensitive=True + toRecipients=[] if toUrl: if not isinstance(toUrl, str): print('ERROR: toUrl is not a string') return None + toRecipients=[toUrl] # who to send to - toRecipients=[toUrl] for mention in mentionedRecipients: if mention not in toRecipients: toRecipients.append(mention)