dhermes / persistent-cal

Google Calendar's Missing Feature
Apache License 2.0
1 stars 0 forks source link

Don't Try to Send E-mail when over quota #1

Open dhermes opened 10 years ago

dhermes commented 10 years ago

From the quota docs:

try:
  mail.SendMessage(to='test@example.com',
                   from='admin@example.com',
                   subject='Test Email',
                   body='Testing')
except apiproxy_errors.OverQuotaError, message:
  # Log the error.
  logging.error(message)
  # Display an informative message to the user.
  self.response.out.write('The email could not be sent. '
                          'Please try again later.')