Don't log stacktraces for qute:// errors

This commit is contained in:
Florian Bruhin 2018-10-04 16:51:01 +02:00
parent 29142f763c
commit 659be2296f
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class QuteSchemeHandler(QWebEngineUrlSchemeHandler):
QWebEngineUrlRequestJob.RequestFailed, QWebEngineUrlRequestJob.RequestFailed,
} }
exctype = type(e) exctype = type(e)
log.misc.exception("{} while handling qute://* URL".format( log.misc.error("{} while handling qute://* URL".format(
exctype.__name__)) exctype.__name__))
job.fail(errors[exctype]) job.fail(errors[exctype])
except qutescheme.Redirect as e: except qutescheme.Redirect as e:

View File

@ -71,7 +71,7 @@ def handler(request, operation, current_url):
QNetworkReply.InternalServerError, QNetworkReply.InternalServerError,
} }
exctype = type(e) exctype = type(e)
log.misc.exception("{} while handling qute://* URL".format( log.misc.error("{} while handling qute://* URL".format(
exctype.__name__)) exctype.__name__))
return networkreply.ErrorNetworkReply(request, str(e), errors[exctype]) return networkreply.ErrorNetworkReply(request, str(e), errors[exctype])
except qutescheme.Redirect as e: except qutescheme.Redirect as e: