Django

Code

Changeset 8664

Show
Ignore:
Timestamp:
08/28/08 11:14:13 (3 months ago)
Author:
jacob
Message:

Fixed #7524: allow errors raised during import of a urlconf to bubble up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/urlresolvers.py

    r8272 r8664  
    255255            return self._urlconf_module 
    256256        except AttributeError: 
    257             try: 
    258                 self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) 
    259             except Exception, e: 
    260                 # Either an invalid urlconf_name, such as "foo.bar.", or some 
    261                 # kind of problem during the actual import. 
    262                 raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) 
     257            self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) 
    263258            return self._urlconf_module 
    264259    urlconf_module = property(_get_urlconf_module)