mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
remove import error handling
This commit is contained in:
@@ -457,11 +457,11 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
Args:
|
Args:
|
||||||
verbosity (int, optional): Verbosity level 0-3. Defaults to 1.
|
verbosity (int, optional): Verbosity level 0-3. Defaults to 1.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
devtools = self.devtools
|
if not self.devtools_enabled:
|
||||||
if devtools is None:
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
devtools = self.devtools
|
||||||
if verbosity.value > LogVerbosity.NORMAL.value and not devtools.verbose:
|
if verbosity.value > LogVerbosity.NORMAL.value and not devtools.verbose:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,11 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from aiohttp.web import run_app
|
||||||
try:
|
from aiohttp.web_app import Application
|
||||||
from aiohttp.web import run_app
|
from aiohttp.web_request import Request
|
||||||
from aiohttp.web_app import Application
|
from aiohttp.web_routedef import get
|
||||||
from aiohttp.web_request import Request
|
from aiohttp.web_ws import WebSocketResponse
|
||||||
from aiohttp.web_routedef import get
|
|
||||||
from aiohttp.web_ws import WebSocketResponse
|
|
||||||
except ImportError:
|
|
||||||
raise ImportError(
|
|
||||||
"Textual Devtools requires installation of the 'dev' extra dependencies."
|
|
||||||
)
|
|
||||||
|
|
||||||
from textual.devtools.client import DEVTOOLS_PORT
|
from textual.devtools.client import DEVTOOLS_PORT
|
||||||
from textual.devtools.service import DevtoolsService
|
from textual.devtools.service import DevtoolsService
|
||||||
|
|||||||
Reference in New Issue
Block a user