Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit ac3885c4339674c0070ba52d1fb6ea7a3b69e17a 1 parent fde7e1c
Adrian Holovaty authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/conf/__init__.py
4  django/conf/__init__.py
@@ -52,7 +52,9 @@ def _import_settings(self):
52 52
             if not settings_module: # If it's set but is an empty string.
53 53
                 raise KeyError
54 54
         except KeyError:
55  
-            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
  55
+            # NOTE: This is arguably an EnvironmentError, but that causes
  56
+            # problems with Python's interactive help.
  57
+            raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
56 58
 
57 59
         self._target = Settings(settings_module)
58 60
 

0 notes on commit ac3885c

Please sign in to comment.
Something went wrong with that request. Please try again.