mirror of https://gitlab.com/bashrc2/epicyon
Avoid including None
parent
9f06738447
commit
c400c029ac
3
posts.py
3
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)
|
||||
|
|
Loading…
Reference in New Issue