Chris McDonough
2011-01-25 b05272338c8d2fa8393ed5489c2bdebe16eb46a7
render token in ValueError instead of passing it as a second arg
1 files modified
2 ■■■ changed files
pyramid/authentication.py 2 ●●● patch | view | raw | blame | history
pyramid/authentication.py
@@ -483,7 +483,7 @@
        
        for token in tokens:
            if not (isinstance(token, str) and VALID_TOKEN.match(token)):
                raise ValueError("Invalid token %r", token)
                raise ValueError("Invalid token %r" % (token,))
        ticket = self.auth_tkt.AuthTicket(
            self.secret,