X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/dc5962060920e5b064064f10e539d49a68c9da68..d7764c68cddf71645439f295c31532e528231051:/code/main.py?ds=inline diff --git a/code/main.py b/code/main.py index bf25c26..e4727a8 100755 --- a/code/main.py +++ b/code/main.py @@ -653,7 +653,8 @@ 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]) - if False: #username not in config.web.errormail_exclude: + exclude = config.web.errormail_exclude + if username not in exclude and '*' not in exclude: send_error_mail('xvm error on %s for %s: %s' % (op, username, err), details) d['details'] = details