master
Bob Mottram 2019-08-05 21:08:23 +01:00
parent 9772c0116f
commit 4dbf07031a
1 changed files with 0 additions and 3 deletions

View File

@ -1069,16 +1069,13 @@ def sendToNamedAddresses(session,baseDir: str, \
return return
if not postJsonObject.get('object'): if not postJsonObject.get('object'):
return return
toList=[]
if isinstance(postJsonObject['object'], dict): if isinstance(postJsonObject['object'], dict):
if not postJsonObject['object'].get('to'): if not postJsonObject['object'].get('to'):
return return
toList=postJsonObject['object']['to']
recipientsObject=postJsonObject['object'] recipientsObject=postJsonObject['object']
else: else:
if not postJsonObject.get('to'): if not postJsonObject.get('to'):
return return
toList=postJsonObject['to']
recipientsObject=postJsonObject recipientsObject=postJsonObject
recipients=[] recipients=[]