Django

Code

Changeset 6943

Show
Ignore:
Timestamp:
12/18/07 21:31:26 (1 year ago)
Author:
adrian
Message:

Changed the ImportError? message from [6832] to improve wording

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/__init__.py

    r6832 r6943  
    5353                raise KeyError 
    5454        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) 
    5658 
    5759        self._target = Settings(settings_module)