From f87b23d8a122ff22da9e25413fd339808aeff4b1 Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Mon, 28 Nov 2022 11:25:31 -0500 Subject: [PATCH] fix flake8 errors --- django/conf/__init__.py | 2 +- django/core/management/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 986ea44c72..62db777c35 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -166,7 +166,7 @@ class Settings: try: mod = importlib.import_module(self.SETTINGS_MODULE) except ImportError as exc: - # If the settings module cannot be imported, treat it as a configuration error. + # If settings module cannot be imported, treat it as a configuration error. if exc.name == self.SETTINGS_MODULE: raise ImproperlyConfigured( f"Settings module {self.SETTINGS_MODULE} could not be imported" diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index aa20424208..ea4add3744 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -382,7 +382,7 @@ class ManagementUtility: settings.INSTALLED_APPS except ImproperlyConfigured as exc: self.settings_exception = exc - # The following commands can be run even without a valid settings file configured + # The following commands can be run without a valid settings file configured if subcommand not in {"startproject", "startapp", "makemessages"}: sys.stderr.write(str(exc) + "\n") self.settings_exception = exc