flask.Flask.raise_routing_exception

Flask.raise_routing_exception(request)[source]

Exceptions that are recording during routing are reraised with this method. During debug we are not reraising redirect requests for non GET, HEAD, or OPTIONS requests and we’re raising a different error instead to help debug situations.

Internal: