mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #841 from Textualize/fix-console-error
fix error on exit from textual console
This commit is contained in:
3
src/textual/cli/__main__.py
Normal file
3
src/textual/cli/__main__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .cli import run
|
||||
|
||||
run()
|
||||
@@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from aiohttp.web import run_app
|
||||
from aiohttp.web_app import Application
|
||||
from aiohttp.web_request import Request
|
||||
@@ -42,7 +43,7 @@ def _run_devtools(verbose: bool, exclude: list[str] | None = None) -> None:
|
||||
def noop_print(_: str):
|
||||
return None
|
||||
|
||||
run_app(app, port=DEVTOOLS_PORT, print=noop_print)
|
||||
run_app(app, port=DEVTOOLS_PORT, print=noop_print, loop=asyncio.get_event_loop())
|
||||
|
||||
|
||||
def _make_devtools_aiohttp_app(
|
||||
|
||||
Reference in New Issue
Block a user