From f23369aeb594316ff3b9f1f850d77ee11c7327e5 Mon Sep 17 00:00:00 2001 From: Forevka Date: Mon, 11 Nov 2019 23:48:00 +0200 Subject: [PATCH] fix for port --- examples/custom_route.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom_route.py b/examples/custom_route.py index 63d6d780..628bfb42 100644 --- a/examples/custom_route.py +++ b/examples/custom_route.py @@ -50,8 +50,8 @@ class CustomExecutor(Executor): inherit from Executor class and overwrite run_app method so you can easily add own routes ''' - def run_app(self, **kwargs): - web.run_app(self._web_app, **kwargs, port = 9999) + def run_app(self, port: int = 8080, **kwargs,): + web.run_app(self._web_app, **kwargs, port = port) def add_subapp(self, subapp: web.Application, subapp_prefix: str): self._web_app.add_subapp(subapp_prefix, subapp)