Check for no address

master
Bob Mottram 2019-08-18 22:15:09 +01:00
parent 494ef3f952
commit bc3c19fd9c
1 changed files with 9 additions and 5 deletions

View File

@ -1342,6 +1342,8 @@ def sendToNamedAddresses(session,baseDir: str, \
if debug:
print('recipientsObject: '+str(recipientsObject[rType]))
for address in recipientsObject[rType]:
if not address:
continue
if '/' not in address:
continue
if address.endswith('#Public'):
@ -1351,6 +1353,8 @@ def sendToNamedAddresses(session,baseDir: str, \
recipients.append(address)
elif isinstance(recipientsObject[rType], str):
address=recipientsObject[rType]
if address:
if '/' in address:
if address.endswith('#Public'):
continue
if address.endswith('/followers'):