Hotfix in send_mail. recipient_emails could be list so logging.debug failed all the time.