Mercurial > hg > bitsyauth
changeset 15:431bd76aabb7
slightly less stupid exception handling
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 13 Jul 2010 12:31:13 -0700 |
parents | 372a913c1051 |
children | 52713d176ab9 |
files | bitsyauth/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyauth/__init__.py Wed Mar 03 10:17:01 2010 -0500 +++ b/bitsyauth/__init__.py Tue Jul 13 12:31:13 2010 -0700 @@ -359,7 +359,9 @@ pass try: return self.cookie_handler(environ, start_response) - except: + except auth_tkt.BadTicket: + environ.pop('HTTP_COOKIE') # kill all cookies! bad! XXX + return self.cookie_handler(environ, start_response) return self.logout(environ, start_response) def logout(self, environ, start_response):