[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-08-08 09:32:45 +00:00
parent aaefa46cd7
commit 78fd820764
2 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
# Import the server here to ensure the reactor is installed very early on in case other
# packages import twisted.internet.reactor (e.g. raven does this).
import daphne.server # noqa: F401
from django.apps import AppConfig
from django.core import checks
import daphne.server # noqa: F401
from .checks import check_daphne_installed
class DaphneConfig(AppConfig):
name = "daphne"
verbose_name = "Daphne"

View File

@ -33,7 +33,7 @@ def get_default_application():
value = getattr(module, name)
except AttributeError:
raise ImproperlyConfigured(
"Cannot find {!r} in ASGI_APPLICATION module {}".format(name, path)
f"Cannot find {name!r} in ASGI_APPLICATION module {path}"
)
return value