Apply suggestions from code review

Co-Authored-By: Erik Johnston <erik@matrix.org>
pull/5994/head
Andrew Morgan 2019-09-06 13:34:42 +01:00 committed by GitHub
parent 5d833f0923
commit cf5a420c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class PasswordResetSubmitTokenServlet(RestServlet):
request.setResponseCode(e.code) request.setResponseCode(e.code)
# Show a failure page with a reason # Show a failure page with a reason
[html_template] = load_jinja2_templates( html_template, = load_jinja2_templates(
self.config.email_template_dir, self.config.email_template_dir,
[self.config.email_password_reset_template_failure_html], [self.config.email_password_reset_template_failure_html],
) )

View File

@ -293,7 +293,7 @@ class RegistrationSubmitTokenServlet(RestServlet):
request.setResponseCode(e.code) request.setResponseCode(e.code)
# Show a failure page with a reason # Show a failure page with a reason
[html_template] = load_jinja2_templates( html_template, = load_jinja2_templates(
self.config.email_template_dir, self.config.email_template_dir,
[self.config.email_registration_template_failure_html], [self.config.email_registration_template_failure_html],
) )