Skip to content

Commit 8328919

Browse files
committed
skip parent prepare step on 404
avoids async login checks when just rendering a 404 page
1 parent a19a27d commit 8328919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbviewer/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
class Custom404(BaseHandler):
2626
"""Render our 404 template"""
27-
async def prepare(self):
28-
await super().prepare()
27+
def prepare(self):
28+
# skip parent prepare() step, just render the 404
2929
raise web.HTTPError(404)
3030

3131

0 commit comments

Comments
 (0)