示例#1
0
def send_error_notification(message):
  """Send error notification to APPENGINE_EMAIL user."""
  try:
    user_email = common.get_app_engine_email()
    common.send_email(user_email, "Error in nightly cron job", message)
  except:  # pylint: disable=bare-except
    logger.exception("Failed on sending notification")
示例#2
0
文件: cron.py 项目: google/ggrc-core
def send_error_notification(message):
  """Send error notification to APPENGINE_EMAIL user."""
  try:
    user_email = common.get_app_engine_email()
    common.send_email(user_email, "Error in nightly cron job", message)
  except:  # pylint: disable=bare-except
    logger.exception("Failed on sending notification")