diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-12-19 03:31:26 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-12-19 03:31:26 +0000 |
| commit | ac3885c4339674c0070ba52d1fb6ea7a3b69e17a (patch) | |
| tree | 5013c5b8d0f1a6936156f15d5fb6ced5e8c23dea | |
| parent | fde7e1c861fd794a5c3f3330a9bc4f75e14de668 (diff) | |
Changed the ImportError message from [6832] to improve wording
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/conf/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index c24e87e6ed..61d9ff7536 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -52,7 +52,9 @@ class LazySettings(object): if not settings_module: # If it's set but is an empty string. raise KeyError except KeyError: - raise ImportError, "Environment variable %s is undefined so settings cannot be imported." % ENVIRONMENT_VARIABLE # NOTE: This is arguably an EnvironmentError, but that causes problems with Python's interactive help + # NOTE: This is arguably an EnvironmentError, but that causes + # problems with Python's interactive help. + raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) self._target = Settings(settings_module) |
