Ticket #10802: core-urlresolvers.patch

File core-urlresolvers.patch, 938 bytes (added by Ionel Cristian Maries, 16 years ago)
  • django/core/urlresolvers.py

     
    127127    def _get_callback(self):
    128128        if self._callback is not None:
    129129            return self._callback
    130         try:
    131             self._callback = get_callable(self._callback_str)
    132         except ImportError, e:
    133             mod_name, _ = get_mod_func(self._callback_str)
    134             raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e))
    135         except AttributeError, e:
    136             mod_name, func_name = get_mod_func(self._callback_str)
    137             raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e))
     130        self._callback = get_callable(self._callback_str)
    138131        return self._callback
    139132    callback = property(_get_callback)
    140133
Back to Top