test_emails: Don't require test coverage for failed template rendering.

This commit is contained in:
Tim Abbott
2017-06-09 16:28:01 -07:00
parent 2514ee4294
commit 14ff26bd67

View File

@@ -69,7 +69,7 @@ def email_page(request):
templates.append(template)
try:
data.append(render_email(template, test_context))
except Exception as e:
except Exception as e: # nocoverage
data.append({'template': template, 'failed': True, 'reason': e})
return render(request, 'zerver/test_emails.html', {'emails': data})