AttributeError: 'dict' object has no attribute 'decode' (or session timeout!?)

494 views
Skip to first unread message

jo

unread,
Feb 16, 2009, 4:43:53 AM2/16/09
to turbo...@googlegroups.com
Hi all,


I think the following traceback is related to a timed out session.
I wonder if there's a way to redirect to a page with a message like
'Sorry. Session timed out!'
instead of riseing an AttributeError.

Traceback (most recent call last):
File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 103, in _run
applyFilters('before_main')
File "/var/lib/python-support/python2.4/cherrypy/filters/__init__.py", line 151, in applyFilters
method()
File "/var/lib/python-support/python2.4/cherrypy/filters/decodingfilter.py", line 31, in before_main
self.decode(enc)
File "/var/lib/python-support/python2.4/cherrypy/filters/decodingfilter.py", line 50, in decode
decodedParams[key] = value.decode(enc)
AttributeError: 'dict' object has no attribute 'decode'

thanks for any help

jo

Reply all
Reply to author
Forward
0 new messages