Code

Ticket #6537: urlresolvers.diff

File urlresolvers.diff, 866 bytes (added by john_scott, 6 years ago)
Line 
1Index: django/core/urlresolvers.py
2===================================================================
3--- django/core/urlresolvers.py (revision 7600)
4+++ django/core/urlresolvers.py (working copy)
5@@ -247,12 +247,7 @@
6         try:
7             return self._urlconf_module
8         except AttributeError:
9-            try:
10-                self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
11-            except Exception, e:
12-                # Either an invalid urlconf_name, such as "foo.bar.", or some
13-                # kind of problem during the actual import.
14-                raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)
15+            self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
16             return self._urlconf_module
17     urlconf_module = property(_get_urlconf_module)
18