Skip to content

Commit

Permalink
use asyncio.coroutine instead of async def
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Jan 9, 2019
1 parent aaaea94 commit f057013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connexion/apis/aiohttp_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def add_swagger_ui(self):
self._get_swagger_ui_home
)

async def redirect(request):
@asyncio.coroutine
def redirect(request):
raise web.HTTPMovedPermanently(location=self.base_path + console_ui_path + '/')
self.subapp.router.add_route(
'GET',
Expand Down

0 comments on commit f057013

Please sign in to comment.