From 82e2588bdcedd33f4b4be714490d62359681d4db Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sat, 21 Jun 2008 21:10:55 -0400 Subject: [PATCH] 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 --- code/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]) -- 1.7.9.5