qutebrowser / qutebrowser-extensions

Extension ideas (and at some point code) for qutebrowser
31 stars 1 forks source link

interceptor API: Error handling #25

Open The-Compiler opened 3 years ago

The-Compiler commented 3 years ago

If a request type doesn't support redirections, we fail with: qutebrowser.extensions.interceptors.RedirectFailedException: Request method does not support redirection.

However, the exception type is not exposed via the API. Also, there should probably be something like info.redirect(url, only_supported=True) which automatically silences those errors.