not to send out quota warning emails on debug server
@@ -254,6 +254,10 @@ def send_over_quota_emails():
msg_str += '\n\nHydroShare Support'
subject = 'Quota warning'
+ if settings.DEBUG:
+ logger.info("quota warning email not sent out on debug server but logged instead: "
+ "{}".format(msg_str))
+ else:
try:
# send email for people monitoring and follow-up as needed
send_mail(subject, '', settings.DEFAULT_FROM_EMAIL,
