Ticket #6537: urlresolvers.diff

File urlresolvers.diff, 866 bytes (added by john_scott, 7 years ago)
  • django/core/urlresolvers.py

     
    247247        try:
    248248            return self._urlconf_module
    249249        except AttributeError:
    250             try:
    251                 self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
    252             except Exception, e:
    253                 # Either an invalid urlconf_name, such as "foo.bar.", or some
    254                 # kind of problem during the actual import.
    255                 raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)
     250            self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
    256251            return self._urlconf_module
    257252    urlconf_module = property(_get_urlconf_module)
    258253
Back to Top