Index: django/core/handlers/modpython.py =================================================================== --- django/core/handlers/modpython.py (revision 3764) +++ django/core/handlers/modpython.py (working copy) @@ -16,9 +16,25 @@ self.path = req.uri def __repr__(self): + try: + get = pformat(self.GET) + except: + get = '' + try: + post = pformat(self.POST) + except: + post = '' + try: + cookies = pformat(self.COOKIES) + except: + cookies = '' + try: + meta = pformat(self.META) + except: + meta = '' + return '' % \ - (self.path, pformat(self.GET), pformat(self.POST), pformat(self.COOKIES), - pformat(self.META)) + (self.path, get, post, cookies, meta) def get_full_path(self): return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '')