From d0f281f1335415af874f9d32026db82360424d0c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Aug 2022 09:25:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- daphne/management/commands/runserver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daphne/management/commands/runserver.py b/daphne/management/commands/runserver.py index b4f0f47..0ebde5f 100644 --- a/daphne/management/commands/runserver.py +++ b/daphne/management/commands/runserver.py @@ -3,9 +3,6 @@ import importlib import logging import sys -from daphne import __version__ -from daphne.endpoints import build_endpoint_description_strings -from daphne.server import Server from django.apps import apps from django.conf import settings from django.contrib.staticfiles.handlers import ASGIStaticFilesHandler @@ -13,6 +10,9 @@ from django.core.exceptions import ImproperlyConfigured from django.core.management import CommandError from django.core.management.commands.runserver import Command as RunserverCommand +from daphne import __version__ +from daphne.endpoints import build_endpoint_description_strings +from daphne.server import Server logger = logging.getLogger("django.channels.server") @@ -33,7 +33,7 @@ def get_default_application(): value = getattr(module, name) except AttributeError: raise ImproperlyConfigured( - "Cannot find %r in ASGI_APPLICATION module %s" % (name, path) + "Cannot find {!r} in ASGI_APPLICATION module {}".format(name, path) ) return value