diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index f6e09c1f3e..950d387caa 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -254,12 +254,7 @@ class RegexURLResolver(object): try: return self._urlconf_module except AttributeError: - try: - self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) - except Exception, e: - # Either an invalid urlconf_name, such as "foo.bar.", or some - # kind of problem during the actual import. - raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) + self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) return self._urlconf_module urlconf_module = property(_get_urlconf_module)