From: Greg Price Date: Sun, 22 Jun 2008 01:10:55 +0000 (-0400) Subject: web: don't send mail on error if it's one of us testing X-Git-Tag: sipb-xen-www/3.6~33 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/82e2588bdcedd33f4b4be714490d62359681d4db web: don't send mail on error if it's one of us testing I started the list with the three of us who've generated error mail so far. Add yourself if you like. svn path=/trunk/packages/sipb-xen-www/; revision=627 --- diff --git a/code/main.py b/code/main.py index efc408c..1fbe0d0 100755 --- a/code/main.py +++ b/code/main.py @@ -617,8 +617,9 @@ def show_error(op, username, fields, err, emsg, traceback): d = dict(op=op, user=username, fields=fields, errorMessage=str(err), stderr=emsg, traceback=traceback) details = templates.error_raw(searchList=[d]) - send_error_mail('xvm error on %s for %s: %s' % (op, username, err), - details) + if username not in ('price', 'ecprice', 'andersk'): #add yourself at will + send_error_mail('xvm error on %s for %s: %s' % (op, username, err), + details) d['details'] = details return templates.error(searchList=[d])