|
@@ -442,9 +442,9 @@ class Client(RequestFactory):
|
|
|
signal_uid = "template-render-%s" % id(request)
|
|
|
signals.template_rendered.connect(on_template_render, dispatch_uid=signal_uid)
|
|
|
# Capture exceptions created by the handler.
|
|
|
- got_request_exception.connect(self.store_exc_info, dispatch_uid="request-exception")
|
|
|
+ exception_uid = "request-exception-%s" % id(request)
|
|
|
+ got_request_exception.connect(self.store_exc_info, dispatch_uid=exception_uid)
|
|
|
try:
|
|
|
-
|
|
|
try:
|
|
|
response = self.handler(environ)
|
|
|
except TemplateDoesNotExist as e:
|
|
@@ -493,7 +493,7 @@ class Client(RequestFactory):
|
|
|
return response
|
|
|
finally:
|
|
|
signals.template_rendered.disconnect(dispatch_uid=signal_uid)
|
|
|
- got_request_exception.disconnect(dispatch_uid="request-exception")
|
|
|
+ got_request_exception.disconnect(dispatch_uid=exception_uid)
|
|
|
|
|
|
def get(self, path, data=None, follow=False, secure=False, **extra):
|
|
|
"""
|