Catch OSError when loading qute:help.

Fixes #763.
This commit is contained in:
Florian Bruhin 2015-07-02 22:08:41 +02:00
parent 2643975c3c
commit 4cef4012e5

View File

@ -153,7 +153,7 @@ def qute_help(win_id, request):
"""Handler for qute:help. Return HTML content as bytes."""
try:
utils.read_file('html/doc/index.html')
except FileNotFoundError:
except OSError:
html = jinja.env.get_template('error.html').render(
title="Error while loading documentation",
url=request.url().toDisplayString(),