diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-24 22:05:23 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-24 22:05:23 -0500 |
| commit | b05272338c8d2fa8393ed5489c2bdebe16eb46a7 (patch) | |
| tree | d51e0f33b3c80739769fcefe2bc28fceaad85c84 | |
| parent | 42a58bb29f922b381b7db0f1bdb63cd48e699f29 (diff) | |
| download | pyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.tar.gz pyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.tar.bz2 pyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.zip | |
render token in ValueError instead of passing it as a second arg
| -rw-r--r-- | pyramid/authentication.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/authentication.py b/pyramid/authentication.py index 0484687ed..cee339532 100644 --- a/pyramid/authentication.py +++ b/pyramid/authentication.py @@ -483,7 +483,7 @@ class AuthTktCookieHelper(object): 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, |
