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(
|
return schemehandler.ErrorNetworkReply(
|
||||||
request, errorstr, QNetworkReply.ContentNotFoundError,
|
request, errorstr, QNetworkReply.ContentNotFoundError,
|
||||||
self.parent())
|
self.parent())
|
||||||
else:
|
try:
|
||||||
data = handler(request)
|
|
||||||
else:
|
|
||||||
data = handler(request)
|
data = handler(request)
|
||||||
|
except IOError as e:
|
||||||
|
return schemehandler.ErrorNetworkReply(
|
||||||
|
request, str(e), QNetworkReply.ContentNotFoundError,
|
||||||
|
self.parent())
|
||||||
return schemehandler.SpecialNetworkReply(
|
return schemehandler.SpecialNetworkReply(
|
||||||
request, data, 'text/html', self.parent())
|
request, data, 'text/html', self.parent())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user