crafty-4/app/classes/web/default_handler.py
Iain Powrie e0ce1d118c Create pylintrc, code review pipeline & correct codebase errors
Fix uploads,
Only send server stats to user page when they have access to servers
2022-01-26 01:45:30 +00:00

23 lines
626 B
Python

import logging
from app.classes.web.base_handler import BaseHandler
logger = logging.getLogger(__name__)
class DefaultHandler(BaseHandler):
# Override prepare() instead of get() to cover all possible HTTP methods.
# pylint: disable=arguments-differ
def prepare(self, page=None):
if page is not None:
self.set_status(404)
self.render(
"public/404.html",
translate=self.translator.translate,
)
else:
self.redirect(
"/public/login",
#translate=self.translator.translate,
)