Don't log stacktraces for qute:// errors
This commit is contained in:
parent
29142f763c
commit
659be2296f
@ -112,7 +112,7 @@ class QuteSchemeHandler(QWebEngineUrlSchemeHandler):
|
||||
QWebEngineUrlRequestJob.RequestFailed,
|
||||
}
|
||||
exctype = type(e)
|
||||
log.misc.exception("{} while handling qute://* URL".format(
|
||||
log.misc.error("{} while handling qute://* URL".format(
|
||||
exctype.__name__))
|
||||
job.fail(errors[exctype])
|
||||
except qutescheme.Redirect as e:
|
||||
|
@ -71,7 +71,7 @@ def handler(request, operation, current_url):
|
||||
QNetworkReply.InternalServerError,
|
||||
}
|
||||
exctype = type(e)
|
||||
log.misc.exception("{} while handling qute://* URL".format(
|
||||
log.misc.error("{} while handling qute://* URL".format(
|
||||
exctype.__name__))
|
||||
return networkreply.ErrorNetworkReply(request, str(e), errors[exctype])
|
||||
except qutescheme.Redirect as e:
|
||||
|
Loading…
Reference in New Issue
Block a user