Kaydet (Commit) fc2b8ddc authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #23495 -- Stopped swallowing real settings import error

Thanks papaloizouc for the report.
üst 023a3d99
......@@ -90,14 +90,7 @@ class Settings(BaseSettings):
# store the settings module in case someone later cares
self.SETTINGS_MODULE = settings_module
try:
mod = importlib.import_module(self.SETTINGS_MODULE)
except ImportError as e:
raise ImportError(
"Could not import settings '%s' (Is it on sys.path? Is there an "
"import error in the settings file?): %s"
% (self.SETTINGS_MODULE, e)
)
mod = importlib.import_module(self.SETTINGS_MODULE)
tuple_settings = ("INSTALLED_APPS", "TEMPLATE_DIRS", "LOCALE_PATHS")
self._explicit_settings = set()
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment