changeset 8695 | 358d8bed9626 |
parent 8645 | 310040c668c0 |
child 8696 | 0bb18407c053 |
--- a/web/request.py Thu Feb 14 15:39:23 2013 +0100 +++ b/web/request.py Thu Feb 14 15:38:25 2013 +0100 @@ -880,7 +880,7 @@ user, passwd = base64.decodestring(rest).split(":", 1) # XXX HTTP header encoding: use email.Header? return user.decode('UTF8'), passwd - except Exception, ex: + except Exception as ex: self.debug('bad authorization %s (%s: %s)', auth, ex.__class__.__name__, ex) return None, None