Unverified Commit aa2885b7 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Fix unhandled traceback in HTTPServer.WebRoot.render_GET() for #6127.

parent f964f7e8
......@@ -305,7 +305,16 @@ class WebRoot(twisted.web.resource.Resource):
:type request: :api:`twisted.web.server.Request`
:param request: An incoming request.
"""
rtl = usingRTLLang(request)
rtl = False
try:
rtl = usingRTLLang(request)
except Exception as err:
logging.exception(err)
logging.error("The gettext files were not properly installed.")
logging.info("To install translations, try doing `python " \
"setup.py compile_catalog`.")
return lookup.get_template('index.html').render(rtl=rtl)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment