Author: jacob
Date: 2008-08-28 11:14:13 -0500 (Thu, 28 Aug 2008)
New Revision: 8664

Modified:
   django/trunk/django/core/urlresolvers.py
Log:
Fixed #7524: allow errors raised during import of a urlconf to bubble up.

Modified: django/trunk/django/core/urlresolvers.py
===================================================================
--- django/trunk/django/core/urlresolvers.py    2008-08-28 16:05:09 UTC (rev 
8663)
+++ django/trunk/django/core/urlresolvers.py    2008-08-28 16:14:13 UTC (rev 
8664)
@@ -254,12 +254,7 @@
         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)
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to