self.add_error_handler(Exception, self.print_exception)
def get_hubapp_by_name(self, name):
- if name == "root":
- name = ""
return self.hubapps[name]
async def print_exception(self, req, resp, ex, params):
host = f"{host}:{port}"
app = config.loaded_app.app
print("Secret:", app.secret)
- for key, value in app.root_app.files_per_uris.items():
+ for key, value in app.hubapps["root"].files_per_uris.items():
if Path(value.path.name).stem == "index.html":
url = urlunsplit((protocol_name, host, key, "", ""))
print("URL:", url)