Handle IOError with qute://help.
This commit is contained in:
parent
31334e6df3
commit
f2b10160cc
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user