From a490faf11c89d14b7cb22b368bc815b0829a2b6f Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 3 Apr 2018 11:58:27 +0100 Subject: Committing wiki subdomain so I can fix my X server --- pysite/route_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pysite/route_manager.py b/pysite/route_manager.py index 6354f242..18efbf73 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -61,13 +61,13 @@ class RouteManager: self.log.debug("") # Load the subdomains - self.subdomains = ['api', 'staff'] + self.subdomains = ["api", "staff", "wiki"] for sub in self.subdomains: - sub_blueprint = Blueprint(sub, __name__, subdomain=sub) - self.log.debug(f"Loading Blueprint: {sub_blueprint.name}") - self.load_views(sub_blueprint, f"pysite/views/{sub}") try: + sub_blueprint = Blueprint(sub, __name__, subdomain=sub) + self.log.debug(f"Loading Blueprint: {sub_blueprint.name}") + self.load_views(sub_blueprint, f"pysite/views/{sub}") self.app.register_blueprint(sub_blueprint) except Exception: logging.getLogger(__name__).exception(f"Failed to register blueprint for subdomain: {sub}") -- cgit v1.2.3