diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-09-17 10:43:45 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-09-17 17:15:44 +0200 |
| commit | fc2b8ddcc8a0d68dcd333a77314c816469ba96af (patch) | |
| tree | f8d42e7eb485cff0243bb11407f5769afde6f03d /django | |
| parent | 023a3d99156b458e0a8b0cb039aeca485066be07 (diff) | |
Fixed #23495 -- Stopped swallowing real settings import error
Thanks papaloizouc for the report.
Diffstat (limited to 'django')
| -rw-r--r-- | django/conf/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 0b20d52484..695cbb9e7f 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -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() |
