On Tue, 28 Jun 2022 10:57:59 +0300, ??? ???? <nsh...@gmail.com> declaimed the following:
> def add_route(self, route): > # """ Add a route object, but do not change the :data:`Route.app` > # attribute.""" > self.routes.append(route) > self.router.add(route.rule, route.method, route, name=route.name >) > # if DEBUG: route.prepare() From your subject "why function throws an error?". How would we know? You never show us the error traceback, you never provide a minimal code listing that someone could attempt to run to perform debugging. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list