don't send to sns if empty

This commit is contained in:
xss 2022-02-12 18:59:57 +11:00
parent 3bdb6b5ac9
commit 4ae8678a5e

View File

@ -349,7 +349,8 @@ def upload(event, context):
# last = to_sns.pop()
# to_sns = to_sns[::3]
# to_sns.append(last)
post(to_sns)
if len(to_sns) > 0:
post(to_sns)
return errors
def lambda_handler(event, context):
try: