Skip to content

Commit

Permalink
Fix unhandled traceback in HTTPServer.WebRoot.render_GET() for #6127.
Browse files Browse the repository at this point in the history
  • Loading branch information
isislovecruft committed Jan 24, 2014
1 parent f964f7e commit aa2885b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/bridgedb/HTTPServer.py
Expand Up @@ -305,7 +305,16 @@ def render_GET(self, request):
: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)


Expand Down

0 comments on commit aa2885b

Please sign in to comment.