Skip to content

Commit

Permalink
specify loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcarbs committed Sep 19, 2024
1 parent a533723 commit 0e94d48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guillotina/commands/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def run(self, arguments, settings, app):
host = arguments.host or settings.get("host", "0.0.0.0")
log_format = settings.get("access_log_format", AccessLogger.LOG_FORMAT)
try:
web.run_app(app, host=host, port=port, access_log_format=log_format)
loop = asyncio.get_event_loop()
web.run_app(app, host=host, port=port, access_log_format=log_format, loop=loop)
except asyncio.CancelledError:
# server shut down, we're good here.
pass

0 comments on commit 0e94d48

Please sign in to comment.