From e455bec46f7beb92526acf100d269d88c2ede064 Mon Sep 17 00:00:00 2001 From: Apkawa Date: Thu, 27 Oct 2011 00:08:23 +0400 Subject: fixed AttributeError on 404 page exception in ProfilerPanel.process_response --- debug_toolbar/middleware.py | 1 - 1 file changed, 1 deletion(-) (limited to 'debug_toolbar/middleware.py') diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index f49a29f..8f0445a 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -74,7 +74,6 @@ class DebugToolbarMiddleware(object): def process_request(self, request): __traceback_hide__ = True if self.show_toolbar(request): - urlconf = getattr(request, 'urlconf', settings.ROOT_URLCONF) if isinstance(urlconf, basestring): urlconf = import_module(getattr(request, 'urlconf', settings.ROOT_URLCONF)) -- cgit v1.2.3