Skip to content

Commit

Permalink
update send-email allow empty msg with attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCXC committed Sep 24, 2024
1 parent 3030b4c commit 31a1920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, db_session_class):
def run(self):
sched = BlockingScheduler()
# fire at every hour in every day of week
@sched.scheduled_job('cron', day_of_week='*', hour='*', misfire_grace_time=600, minute='33')
@sched.scheduled_job('cron', day_of_week='*', hour='*', misfire_grace_time=600)
def timed_job():
logging.info('Starts to scan automation rules...')

Expand Down
2 changes: 1 addition & 1 deletion dtable_events/dtable_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def batch_send_email_msg(auth_info, send_info_list, username, config=None, db_se
file_contents = send_info.get('file_contents', None)
image_cid_url_map = send_info.get('image_cid_url_map', {})

if not msg and not html_msg:
if not msg and not html_msg and not file_download_urls and not file_contents:
dtable_message_logger.warning('Email message invalid')
continue

Expand Down

0 comments on commit 31a1920

Please sign in to comment.