Handle IOError with qute://help.

This commit is contained in:
Florian Bruhin 2014-09-12 20:10:13 +02:00
parent 31334e6df3
commit f2b10160cc

View File

@ -69,10 +69,12 @@ class QuteSchemeHandler(schemehandler.SchemeHandler):
return schemehandler.ErrorNetworkReply(
request, errorstr, QNetworkReply.ContentNotFoundError,
self.parent())
else:
data = handler(request)
else:
try:
data = handler(request)
except IOError as e:
return schemehandler.ErrorNetworkReply(
request, str(e), QNetworkReply.ContentNotFoundError,
self.parent())
return schemehandler.SpecialNetworkReply(
request, data, 'text/html', self.parent())