summaryrefslogtreecommitdiffstats
path: root/forum/middleware/pagesize.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/middleware/pagesize.py')
-rw-r--r--forum/middleware/pagesize.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/forum/middleware/pagesize.py b/forum/middleware/pagesize.py
index 7090a04c..626c84e5 100644
--- a/forum/middleware/pagesize.py
+++ b/forum/middleware/pagesize.py
@@ -31,4 +31,6 @@ class QuestionsPageSizeMiddleware(object):
def process_exception(self,request,exception):
import logging
import traceback
+ import sys
+ exc_type, exc_value, exc_traceback = sys.exc_info()
logging.debug(repr(traceback.extract_tb(exc_traceback)))