Fix linting errors
This commit is contained in:
parent
6351753066
commit
41454b2553
@ -49,7 +49,6 @@ from sanic.asgi import ASGIApp
|
||||
from sanic.base import BaseSanic
|
||||
from sanic.blueprint_group import BlueprintGroup
|
||||
from sanic.blueprints import Blueprint
|
||||
from sanic.compat import OS_IS_WINDOWS
|
||||
from sanic.config import BASE_LOGO, SANIC_PREFIX, Config
|
||||
from sanic.exceptions import (
|
||||
InvalidUsage,
|
||||
|
@ -17,6 +17,7 @@ def use_uvloop() -> None:
|
||||
"""
|
||||
try:
|
||||
import uvloop # type: ignore
|
||||
|
||||
if strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")):
|
||||
error_logger.warning(
|
||||
"You are running Sanic using uvloop, but the "
|
||||
|
Loading…
x
Reference in New Issue
Block a user