Skip to content

Run middleware after web application check if the path exists #7326

Answered by Dreamsorcerer
tonygcs asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the code, try this:
if isinstance(request.match_info.http_exception, web.HTTPNotFound):

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tonygcs
Comment options

@Dreamsorcerer
Comment options

Answer selected by tonygcs
@tonygcs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants